Create a git repository for an existing xcode Project
Luo chaohui (http://blog.csdn.net/kesalin/) CC license, reprinted please indicate the source
Xcode automatically creates a local git repository for the new project, but how does one create a git repository for the existing project? Google posted this article below.
Original article link: click here
Where the ignore file is downloaded as: https://github.com/github/gitignore/blob/master/Objective-C.gitignore
Creating
A git repository for an existing xcode project ∞
Ash:
New xcode projects will let you keep local git source control. Using an existing project with this local source control is... Difficult. I tried for a while before almost giving up. Documentation around the "add working copy" is almost non-existent. This is
How you do it.
Alternatively:
$cd path/to/project$git init$git add .$git commit -m "Initial commit of project"
Keep
In mind with either approach, it's a good idea to include a good.gitignore
File.
Here's a good
One for xcode projects.