Some points to note about Git

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.