git发布tag
git发布tag
========================
有些命令行老是要找半天,这里记录下git发布tag
举例来说,要发布一个3.3.0的tag ,就用git tag 3.3.0
然后推送到远程仓库用git push origin 3.3.0
,注意origin
不能省略
删除tag用git tag -d 3.3.0
查看tag用git tag
zhangsaidong@zhangsaidongs-MacBook-Pro Perfect-HTTP-tencent % git tag 3.3.0
zhangsaidong@zhangsaidongs-MacBook-Pro Perfect-HTTP-tencent % git push 3.3.0
fatal: '3.3.0' does not appear to be a git repository
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
zhangsaidong@zhangsaidongs-MacBook-Pro Perfect-HTTP-tencent % git push origin 3.3.0
Total 0 (delta 0), reused 0 (delta 0)
To https://e.coding.net/Zhangsaidong/server-tencet2/Perfect-HTTP-tencent.git
* [new tag] 3.3.0 -> 3.3.0
本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来自 张赛东!
评论