Git server code submission Summary

Source: Internet
Author: User

The steps required to submit the updated code to the GIT server:

1. Git pull

Update code to the latest version

2. Git add file name

Add the file to be submitted

3. Git commit-M "Summary of the modified content"

Or: git commit

Edit the modified content in VI.

4. Git log-2

View the modified content.

5. Git checkout-B mybranch

Submit the code to the local branch.

6. Git push OS mybranch: refs/For/refs/heads/android

Submit the code to the remote branch. The last one is the name of the remote branch to be submitted.

7. log on to your Gerrit server and add the reviewer of the Code.

Git server code submission Summary

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.