Git & Xcode

September 15, 2012

I got a new MacBook Air from work yesterday. The command line tools of Xcode weren’t transferred over from my old machine, so when I typed git status, nothing happened.


Frédéric Sagnes sent me this Cocoanetics article explaining how git is contained inside Xcode and you don’t need to install the command line tools at all. Further, the git version in Xcode is newer than the one in the command line tools.

Enter the following command into the Terminal to get the latest and great git version that Xcode is running itself.

echo alias "git=xcrun git" >> ~/.bashrc

Please submit typo corrections on GitHub