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

1
2
3
4
5
6
7
8
9
10
11
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-SA 4.0 协议 ,转载请注明出处!