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详细信息

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值