Create a gist now

Instantly share code, notes, and snippets.

Xcode ships with an outdated version of Git. If you're using a newer Git in "usr/local/bin" (such as a Homebrew install) and want Xcode to use it, too, then this is for you. This will have to be run after each and every update of Xcode.
cd /Applications/
/Applications/ --version
sudo mv git git_old
sudo ln -s /usr/local/bin/git git
echo "...has been changed to..."
/Applications/ --version

Hmm.. Something seems to be a bit off:

git version (Apple Git-37)
...has been changed to...
git version 1.8.2
dotnetCarpenter@mini ~/Projects/bash master$ git --version
git version (Apple Git-37)

Sorry, my bad. I thought your script changed git globally to use a newer version and not just xcode.


Nope, just Xcode. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment