First, Installation:
git:http://git-scm.com/downloads/
Download git, configure git:http://blog.csdn.net/reactor1379/article/details/8008677
Second, use:
(1)
1, create a new repository:ios-test can refer to: http://blog.csdn.net/delphiwcdj/article/details/23055125
2. Create a new local repository in your Mac: local_repository and switch to the directory via the terminal $CD/users/qianhua/desktop/wen/local_repository//Switch directory
Clone the repository on GitHub to Local_repository $git clone Https://github.com/ETmanwenhan/IOS-test.git will be in Local_ There's a Ios-test folder in Repository.
3. Manually add the MAPKIT1 project to Ios-test and execute the following GIT commands
$git Add. Add all files from the current directory to staging area
Executable $git status//view state
4. Submit the changes in staging area to the local warehouse
$git Commit-m ' notes submitted here: Submit to local repository '
5. Push the changed files in the local warehouse to the remote repository
$git Push Origin Master//clone operation will automatically use the default Origin[remote-name] and Master[branch-name]
(2) Diagram: Modify the file, submit to the local repository and push to the remote GitHub repository
Report:
git commands to memorize: http://www.2cto.com/kf/201212/179768.html
"Pro git" git Bible Chinese version: http://download.csdn.net/download/lidaasky/7496835
Installation and simple use of Git on Mac