Sudo ln -sf /usr/local/git/bin/git /usr/bin/git To overcome, do the following: sudo mv /usr/bin/git /usr/bin/git-system (Yosemite and later) ship with stubs in /usr/bin, which take
Xcode installs its git to /usr/bin/git recent versions of OS X
FAQ I have XCode installed (and consequently its bundled git) how do I get my system to use this version instead?