Is there any way to use a git repository with the built in SCM functions of Xcode?
I use external editors anyway. Many of them support git commands. In this way, git is "integrated" into Xcode
Xcode 4 supports git natively (Developer Tools State of the Union Address at WWDC 2010)
Learn more here: What's new in Xcode 4
The documentation from Apple is lengthy, but a good read.
The latest Xcode 4 beta has git integration, however, it does not install it by default, neither does it use your currently installed git.
What I had to do was install the "System Tools" option in the Xcode installer. (Which is skipped by default) after that, the organizer recognized that my project was already under git control, and integrated smoothly.
You can use Xcode with Git repos. Visual Studio Team Services offers free, private, and unlimited Git repos in the cloud. Not only can you use Xcode, but also Eclipse, Visual Studio, Team Services' own web browser interface, or any other editor/IDE you like. Share code with the first 5 users for free too.
YouTube video: https://youtu.be/S83kn0i4WYs
No, there's not, and to be honest I'm rather grateful, as the SVN support in Xcode seemed really flaky to me. After I moved to Git for my personal projects, I just have a Terminal window open that I can fire off git add
and git commit
as needed.
In addition to the .gitignore settings referenced from the post above I have added the generated files to my config file.
build/
*.pyc
*~.nib/
*.pbxuser
*.perspective
*.perspectivev3
*.xcworkspace/
xcuserdata/
This helps to keep the noise out of my depot.
If I need to add generated files I add a Release folder and keep the *.framework and *.app folders to my project directory. I add anything I release to the testing group to the Release folder and tag it.