git practical command record

1, operating on the tag

Check local tag

 git tag -l

 

View remote tag

git ls-remote --tags origin

 

Delete the local tag

git tag -d yourtagname

Delete remote synchronization tag

git push origin :refs/tags/yourtagname

 

Create a tag

git tag -a yourtagname -m "my first tag"

The tag's push to create a remote repository

git push origin yourtagname

 

 2, the operation on the branch

 

 

 

 

 

Guess you like

Origin www.cnblogs.com/mylittlecabin/p/11981163.html