第五天git学习记录

git tag <name>

打一个新标签

git tag

查看所有标签

git tag <name> <commit id>

在指定的commit id上打标签

git show <name>

查看标签信息

git tag -s <name> -m <msg> <commit id>

在指定的commit id上打上有说明的标签

git tag -d <name>

删除标签

git push origin <tagname>

推送某个标签到远程

git push origin –tags

一次性推送全部尚未推送到远程的本地标签

你可能感兴趣的:(标签,git,tag)