git tags 管理

  1. 新建标签: git tag -a V1.1 -m "some thing" (新建标签前请先commit代码)
  2. 推送标签: git push --tags (推送标签前请先推送代码)
  3. 删除本地标签: git tag -d V1.1
  4. 删除远程标签: git push origin :refs/tags/V1.1
  5. 查看标签: git tag -l (会列出一个列表)
  6. 查看标签详情: git show v0.1.1 (查看特定标签的详情)
原文地址:https://www.cnblogs.com/qufanblog/p/7525525.html