git - 如何从 Mac 卸载 Git (Apple Git-75)?

标签 git macos terminal

我无法从我的 Mac 上卸载 Git。我正在运行 macOS Sierra。我已经尝试了所有可用的解决方案,但似乎无法弄清楚如何从我的 Mac 上卸载 Git。

这是我的 Mac 上安装的当前版本的 Git 的屏幕截图。

/image/EgrAL.png

谢谢。

最佳答案

只需通过 brew 安装最新的 git

brew install git

然后

PATH=/usr/local/git/bin:$PATH

新的 git 版本将取代苹果默认的 git

关于git - 如何从 Mac 卸载 Git (Apple Git-75)?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40777188/

相关文章:

git - 如何在与 Visual Studio 的 GitHub 扩展的 merge 冲突中选择单独的行

swift - 在文件名中插入一个字符

c++ - CLion cout打开命令提示符窗口,而不使用CLion的终端

xcode - 从命令行创建新的 xcode 项目

shell - Guake终端启动shell脚本

git - 是否可以使用 Jenkins 管道进行 Git merge/推送

git - 如何将 Git 存储库转移到另一个 Git 存储库的主分支

python - 在 python 脚本中运行 “git clone https://remote.git” 时如何提供密码(有 @ )?

macos - Homebrew 错误提示未找到SDK(MacOS 11/10.16)

ios - 尝试安装 react native 时出错,运行 pod install 时无法正确构建