tag管理
查看tag 太多的話用 grep 過濾
$ git tag | grep dev_20150525
# 建立tag
$ git tag -a dev_20150525_16 -m 'xxxx'
把tag push到遠程
$ git push origin dev_20150525_16
Counting objects: 1, done.
Writing objects: 100% (1/1), 156 bytes | 0 bytes/s, done.
Total 1 (delta 0), reused 0 (delta 0)
To git@github.com:FrankFan/test.git
* [new tag] test_tag1 -> test_tag1
刪除tag 本地刪除
$ git tag -d test_tag1
Deleted tag 'tag_20150714_01' (was 5cbb087)
刪除遠程的tag, 公司gitlab配置爲沒有刪除遠程tag的權限
$ git push origin :refs/tags/reg_201050709_01
To git@github.com:FrankFan/test.git
- [deleted] tag_20150713_01