Git common commands and role "Memo"

Source: Internet
Author: User

Git commit commits a modification

Git branch branchname Create a new branch of Branchname

Git merge branchname merge the current branch with the Branchname branch

Git rebase branchname to set the parent node of the current branch to Branchname

Git reset head~1 used locally, roll back to the previous node in HEAD

git revert HEAD in the need to commit the remote revocation, undo the current changes, will create a new node

git tag v0 C1 set a v0 tag for C1

git clone clones a remote repository

git Fetch download Remote modification

git pull download remote modification and merge with local branch

Git push commits a local modification

git pull--rebase Download the remote modification and set the parent node of the local branch to the latest

Git common commands and role "Memo"

Related Article

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.