Finally, Apple introduced native Git support in Xcode 4. Git is now the standard version control system you can use within Xcode. The Apple engineers did a great job in integrating Git into Xcode 4 … but there is room for improvements 😉 Tools like gitx still are essential for me to keep track of all the branches in the Git-repository.
If you want to use Git as the version control system for your Xcode projects, you definitely should use a specific .gitignore file to keep your Git-repository clean.
That’s the content of a Xcode4 optimized .gitignore text-file:
# Exclude the build directory
# Exclude temp nibs and swap files
# Exclude OS X folder attributes
# Exclude user-specific XCode 3 and 4 files