MacOS Sierra 打破了我的 git,哦不——适用于 Sierra、High Sierra 和 Mojave

MacOS Sierra broke my git, oh noes - Applicable to Sierra, High Sierra, and Mojave

我今天升级到 MacOS Sierra 并像往常一样访问我的存储库,但是 git 命令的 none 有效,事实上我的机器无法识别我有 git安装。有帮助吗?

我找到了 this article 但它似乎有点复杂。

所有这些都有些复杂,在许多情况下,您需要做的就是重新安装 xcode 开发人员工具。

打开终端或 iTerm 并运行这个:

xcode-select --install