Git 命令搜集

2019-02-15  本文已影响0人  七海的游风

Tag

https://www.jianshu.com/p/154d58451ef7

左右 命令 示例
查看本地分支标签 git tag -l 或者 git tag --list -
查看远程所有标签 git ls-remote --tags 或者 git ls-remote --tag -
给当前分支打标签 git tag 《标签名》 git tag v1.1.0
某个commit版本打标签 git tag 版本号 -m 注释 commitId git tag v1.0.0 039bf8b git tag v1.0.0 -m "add tags information" 039bf8b
给当前分支打标签 git tag 《标签名》 git tag v1.1.0
给当前分支打标签 git tag 《标签名》 git tag v1.1.0
git tag -a 'sop-monitor-0.0.1' -m "sop-monitor-0.0.1"
git tag -l 'sop-monitor-0.0.1'
git push origin sop-monitor-0.0.1
上一篇 下一篇

猜你喜欢

热点阅读