Xcode 4 issue with git

I had an issue with Xcode 4 where it wasn’t recognizing git even though git was installed. Xcode wasn’t showing me what files I had modified nor was it allowing me to commit. Here’s the article that solved my problem – basically, I just needed to create a symlink like this:

sudo ln -s /usr/local/git/bin/git /usr/bin/git