# #Xcode中git使用
# # # # # #本文在此只介绍当新建工程时, the GIT option is not checked, but git is a workaround for the post-development process.
***
1. Open the terminal
2. Enter the command
> cd/users/Computer Manager status/New project location/new project name
such as: Cd/users/chen-jie/desktop/cjgit use
3. Input command: Git init
> This initializes an empty source, and if you view or enter the LS command in the Finder, you will see that the. Git subdirectory has been created.
4. Enter the command: Git Add.
> All the contents of the current directory are added to the source.
5. Input command: Git commit-m ' Initial commit '
> A list of changes to be performed by a local Git source is then shown.
***
Now the git source is built, but if you go back to Xcode and open the Source Control menu, you'll find that everything is still disabled. This is because when we use the command line tool to create a git source, Xcode is not notified, below Commond+q, and then restart it, in Cjgit using the project, if you open the source Control menu again, you will find all the options have been enabled, Just like the first tick to create a git source.
***
Again, this article is from the original, please click on the details:
[Http://www.cocoachina.com/ios/20140524/8536.html] ()
iOS development Xcode in git use (partial)