升级到 MacOS X 10.15 Catalina 后,我无法在我的 shell 中运行任何 git 命令:
默认的交互式 shell 现在是 zsh。
要更新您的帐户以使用 zsh,请运行
chsh -s /bin/zsh
.更多详情,请访问https://support.apple.com/kb/HT208050。
~ | 混帐
xcrun:错误:无效的活动开发者路径 (/Library/Developer/CommandLineTools),缺少 xcrun:/Library/Developer/CommandLineTools/usr/bin/xcrun
我认为我的 shell 有问题,所以我按照说明将默认的 Mac OS shell 更改回 bash,使用 GUI 并使用命令行:
chsh -s /bin/bash
我也重新启动了电脑。但是,即使echo "$SHELL"
输出,我仍然看到相同的消息/bin/bash
。