If you have a freshly installed copy of Snow Leopard, and an equally freshly installed copy of XCode 4 you’ll find that XCode 4 doesn’t support the git source control system. This can be a problem that suddenly happens after reinstalling OSX, but fortunately the fix is very simple.
XCode expects the git binary to be in /usr/bin however OSX installs Git in /usr/local/git/bin. Fixing it is as difficult as setting up an appropriate symbolic link and restarting XCode:
Find out where git is
cubee:~ james$ which git /usr/local/git/bin/git
Create a symbolic link
cubee:~ james$ sudo ln -s /usr/local/git/bin/git /usr/bin/git

