OSX 10.10 yosemite beta on git pull: git-sh-setup: No such file or directory

后端 未结 10 2154
醉话见心
醉话见心 2020-12-22 18:33

After upgrading to OSX 10.10 Yosemite Beta, running git pull is returning the following error:

/Library/Developer/CommandLineTools/usr/li

10条回答
  •  南笙
    南笙 (楼主)
    2020-12-22 19:26

    Here's a temporary fix (assuming Homebrew and Git 2.0.0) if you need Git to work before an official fix comes out. I setup two shell variables:

    export GIT_PATH="/usr/local/Cellar/git/2.0.0/bin"
    export GIT_CORE_PATH="/usr/local/Cellar/git/2.0.0/libexec/git-core"
    

    ... and then replaced instances of git with appropriate absolute links. You can use the following Gists to do the same:

    • Replace /usr/local/Cellar/git/2.0.0/libexec/git-core/git-sh-setup/ with git-sh-setup
    • Replace /usr/local/Cellar/git/2.0.0/libexec/git-core/git-stash/ with git-stash
    • Replace /usr/local/Cellar/git/2.0.0/libexec/git-core/git-pull/ with git-pull

    This is a hack for sure, but it will get you going.

    EDIT: Make sure you look at the answer from @pilif before doing this...

提交回复
热议问题