git create a label tag

1. git tag <name>We can make a new label

The -a parameter to create a tag with notes, notes, information specified by -m. If you do not pass the -m creation process will automatically open the editor for you to let you leave notes.

git tag -a tagName -m "my tag"

 

2. List the existing tag

git tag

3. commit to a specified number plus tag

git tag -a v1.2 9fceb02 -m "my tag"

4. The remote end tag

git push origin v1.0

Push all:

git push origin --tags

 

  

Guess you like

Origin www.cnblogs.com/smiler/p/11576773.html