再谈git和github-深入理解-3

git tag -a 和 -m的区别?
-a是 注解 是单词 "annotate"的意思 , 表示 "给标签一个名字, 标签名
-m 是创建标签时的消息备注
git tag -a 'V1.0' -m '创建1.0版本

tag是对应着某一个commit ID, 是对commit 的简短/易记 表示.

git 要删除 远程仓库上的内容, 包括 远程分支 远程标签 是在git push命令中的远程仓库 origin的后面 加上 冒号: git push origin : branch_name; git push origin : refs/tags/v1.0

猜你喜欢

转载自www.cnblogs.com/bkylee/p/9289765.html