升级至 MacOS X 10.15 Catalina 后,我无法在终端运行任何 git 命令:
默认的交互式 shell 现在是 zsh。
要更新您的帐户以使用 zsh,请运行
有关更多详细信息,请访问 https://support.apple.com/kb/HT208050。
~ | git
xcrun:错误:无效的活动开发人员路径(/Library/Developer/CommandLineTools),缺少 xcrun 在:/Library/Developer/CommandLineTools/usr/bin/xcrun
默认的交互式 shell 现在是 zsh。
要更新您的帐户以使用 zsh,请运行
chsh -s /bin/zsh
。有关更多详细信息,请访问 https://support.apple.com/kb/HT208050。
~ | git
xcrun:错误:无效的活动开发人员路径(/Library/Developer/CommandLineTools),缺少 xcrun 在:/Library/Developer/CommandLineTools/usr/bin/xcrun
chsh -s /bin/bash
我也重新启动了电脑。 然而,即使echo "$SHELL"
输出 /bin/bash
,我仍然看到相同的消息。