git tag用法

git tag  //查看tag
git tag test_tag c809ddbf83939a89659e51dc2a5fe183af384233    //在某个commit 上打tag
git tag
...
git push origin test_tag    //!!!本地tag推送到线上
...
git tag -d test_tag        //本地删除tag
git push origin :refs/tags/test_tag    //本地tag删除了,再执行该句,删除线上tag

https://www.liaoxuefeng.com/wiki/0013739516305929606dd18361248578c67b8067c8c017b000/001376951758572072ce1dc172b4178b910d31bc7521ee4000

https://git-scm.com/book/zh/v1/Git-%E5%9F%BA%E7%A1%80-%E6%89%93%E6%A0%87%E7%AD%BE

猜你喜欢

转载自www.cnblogs.com/bluestorm/p/10289252.html
今日推荐