Git code Management Usage flow

Source: Internet
Author: User
Preparatory work

First to configure SSH to operate the code, configure the operation please google.

1, check out the warehouse

git clone [email protected]:/path/to/repository

2. Enter the project catalogue

CD Project Path

3. Get the latest skeleton code

git checkout Master (switch branch)
Git pull (get the latest code)

4. Create a new development branch Myfeature

Git checkout-b myfeature

5, Save the change content

git Add. Save all changes (including new, modified, and deleted)
Git status View files that have changed
Git commit-m "code submission Information"

6, submit to the remote warehouse

Git push Origin master (push to Master branch, you can change the branch name)

7. Synchronization with the backbone

Git fetch origin
Git rebase origin/master

Tip

Git Branch View branches

Reference links

Git-Easy Guide
Git uses the canonical process

Git code Management Usage flow

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.