git笔记:tag常用操作,查询,拉取,合并,推送,创建,删除

git tag -l列出所有tag

git tag -d <tagname> 删除本地指定tag

git fetch <remote> --prune 从远程拉取所有信息

git ls-remote --tags <remote> 查询远程tags

git fetch <remote> --tags 从远程拉取所有tags

git fetch <remote> --tags <tagname> 从远程拉取指定tags

git pull <remote> --tags 合并远程的所有tags到本地

git pull <remote> --tags <tagname>合并远程的指定tags到本地

git push <remote> --tags 推送所有本地tag到远程

git push <remote> --tags <tagname> 推送指定本地tag到远程

git push <remote> :refs/tags/<tagname> 删除远程tag版本

git branch -a --contains <tagname> 看看哪个分支包含这个 tag/commit

git tag -l <tagname> 列出符合条件的tag(筛选作用),例如 v1.*

git tag <tagname> 创建轻量tag(无-m标注信息)

git tag -a <tagname> 创建含注解的tag

git show <tagname> 显示指定tag详细信息

posted @ 2023-05-08 13:58  wind-stormger  阅读(1634)  评论(0编辑  收藏  举报