I have existing project and I want to add it in "git local repository".
How can I do that ?
I have existing project and I want to add it in "git local repository".
How can I do that ?
Open the Terminal
and go to your project directory – the one with *.xcodeproj
.
Type git init .
to initialize a Git repository there.
Now you don't want all the files under source control, so Git allows you to ignore some of them by including them in a file .gitignore
. You can check this to find out
Open the project and your task is done. However it would be better to head to the Organizer Window and do a commit of all the files.
Now your project is backed by a git repository.
It's pretty simple, assuming you've got git installed. http://tiredblogger.wordpress.com/2009/11/09/creating-local-git-repositories-yeah-its-that-simple/.