Saturday, May 28th, 2011
1. Close XCode 4
2. Open Terminal and cd to your project folder
3. Type git init
4. Then git add .
5. And finally git commit -m “First commit of XCode project”
Reopen XCode and fingers crossed you are now all GITed up.
The original article is here