Before you submit your code to an empty warehouse
Place the _gitignore of the document area first in the project root directory
Then change the name to. Gitignore
Then git Add. gitignore
The purpose of the above is to ignore some files that should not be submitted to git, many people do not conflict when editing the project
git example:
To create a git repository:
mkdir toeflspeaking
CD toeflspeaking
Git init
git Add.
Git commit-m "First commit"
Git remote add Origin https://git.oschina.net/zhouwm/toeflSpeaking.git
Git push-u Origin Master
Already have a project?
CD Existing_git_repo
Git remote add Origin https://git.oschina.net/zhouwm/toeflSpeaking.git
Git push-u Origin Master
After Git is set up.
People involved
git clone https://git.oschina.net/zhouwm/toeflSpeaking.git
You can then use the Xcode menu to submit, or if you like the command line, continue with the command line
If you select push at the same time, you do not have to push separately, otherwise push
If multiple people edit the project, pull before push (pull before the pull must be changed to local), and then there is a conflict local resolution
Some points to note about Git