Git Advanced (branch and Tag management)

Source: Internet
Author: User
Tags tagname

Master is the main branch of the project, points to the project version, head is the latest version of the main branch of the project, pointing to the main line name

git checkout-b Dev//Create the Dev branch and switch to the branch, equivalent to:Git branch Dev//Create a branchgit checkout Dev//Switch BranchesGit branch//View Current Branchgit merge Dev//switch to the other, then merge the Dev branch into the current branchgit branch-d Dev//Remove Dev Branch
git log--graph--pretty=noline--abbrev-commit//git log command with parameters to view branch history
Git merge--no-ff-m "version info" dev//merge with--NO-FF parameter disable Fast forward mode,
Git stash//staging current Branch
git stash list//view status of staging (stash) zone
git stash pop//Resume staging (stash) zone content and delete, equivalent to:
git stash apply//Restore staging area content
git stash drop//delete staging area contents
git remote-v//view remote Library information,-v verbose display
Git push Origin dev//push dev branch to remote repository

git tag//view All tags
git tag <tagname>//Current Version Settings tab
git tag <tagname> commitid//Specify Version Settings tab
Git show <tagname>//view specified tag information
git tag-d <tagname>//Delete tags
Git push Origin <tagname>//push specified tag to remote repository
Git push Origin--tags//push all tags to remote repository

Git Advanced (branch and Tag management)

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.