【发布时间】:2020-02-05 09:42:13
【问题描述】:
升级到 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。
【问题讨论】:
-
shell 跟什么有什么关系?这看起来像是 Xcode 命令行工具的问题。
标签: bash git macos zsh macos-catalina