Tagging tag

1, $ git Tag # print out all current label warehouse in the console

2, $ git Tag [Tagname] # new write label

3, push a single tag, command format is: Git Push Origin [Tagname]

4, push all the tag, command format is: Git Push [Origin] --tags
  example:
  Git Push --tags
  or
  git push origin --tags

How to add a tag to commit after multiple submissions

1, git logsee the commit log to find out that you need commit. Assume submitted commit idas "928a92a123456b126eb1234567c210ab8f1234e9d".

2, using git checkout <commit id>, for example git checkout 928a92a123456b126eb1234567c210ab8f1234e9d. This command will switch back to your local project on a commit record.

3, use git tagbe playing tag, for git tag v1.0.1example: .

4, and then will be submitted to the local git tag on a remote repository git push origin v1.0.1.

Guess you like

Origin www.cnblogs.com/ycyh1314/p/11640899.html