GitHub's approach to submitting code to the server

Source: Internet
Author: User


In the first case, there is no conflict:
1.git Add.//Go to the center of the project to package the local file meaning
2.git Pull Origin dev//Download the server's code locally if it is up-to-date and will prompt already up-to-date
3.git commit-m "Search Complete"
4.git push origin dev//means push the code to the server if you can't ctr+c and then push it.
In the second case, there is a conflict:
1.git Add.//Go to the center of the project to package the local file meaning
2.git Pull Origin dev//Download the server's code locally if it is up-to-date and will prompt already up-to-date
If there is a conflict, it will prompt the conflict.
3. Git stash//has conflicts stash the conflicting files are stored, stash: Storage
4. Git pull origin dev//can download the code from the server because the local conflict file is already packaged
5.git stash pop//to remove stash files
6. Git Add.//Package The local file again
7.git commit-m "Search complement Add entry limit"//Add an identity to the file submission that has already been packaged
8. Git push origin dev//to submit the packaged files to the server

GitHub's approach to submitting code to the server

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.