CodeManagement has been using smartgit, and it feels quite useful. Create a project, and then add the existing xcode project to the smartgit code library through clone. Yesterday, I wanted to add my project to smartgit. I couldn't find where to add it. I couldn't remember how I used to add the project to the code library. Later, I tried the clone function and found that the old project can be added to the code library in clone mode, but the new project cannot. I suddenly remembered that the new version of xcode added an option when creating the project:
The previous project creation was not checked. Will it be the reason?
I immediately created a new project, checked this option, and used the clone of smartgit to create a code library. This time, it is enough. It seems that xcode has no default git library.
The solution is to create a code library for the original xcode project, Google times, and find a method:
Log on to the project directory on the console and run the following command:
Git initgit Add. Git commit-M "Initial commit"
In this way, the existing code library is added to git.
For more information, refer to the following:Article:
Http://ashfurrow.com/2011/03/how-to-create-git-repos-for-existing-xcode-projects/