How do I uninstall git version 1.6.5.1 from Mac OS X 10.5.8

后端 未结 5 1900
臣服心动
臣服心动 2020-12-29 22:25

How do I uninstall git version 1.6.5.1 from Mac OS X 10.5.8?

5条回答
  •  轮回少年
    2020-12-29 23:07

    I recently had to upgrade from 1.9.3 to 2.2.1 on Mac OSX 10.10.1

    I successfully ran the installer for 2.2.1, but the command line "git --version" still showed 1.9.3.

    It turns out that 2.2.1 was successfully installed to /usr/local/git/bin and the directory was added to my path. However, 1.9.3 was installed in /usr/bin, which appeared in my shell PATH variable before /usr/local/git/bin, and so was being called before the updated version.

    This was fixed by running "sudo rm -rf /usr/bin/git*" and restarting the command line.

    FYI: if you think you're having a similar issue, you can find the various versions of git in your PATH by running "type -a git"

提交回复
热议问题