git删除所有分支

Terwer 技术分享评论163字数 265阅读0分53秒阅读模式

To delete all the local tags simple run the following command文章源自浅海拾贝-https://blog.terwergreen.com/git-delete-all-branches-z22hnwp.html

git tag | xargs git tag -d

To delete remote tags after deleting the local tags by running the above command, you can run the comand below文章源自浅海拾贝-https://blog.terwergreen.com/git-delete-all-branches-z22hnwp.html

git ls-remote --tags --refs origin | cut -f2 | xargs git push origin --delete

NOTE: replace origin with your remote handler文章源自浅海拾贝-https://blog.terwergreen.com/git-delete-all-branches-z22hnwp.html

相关文章
  • 扫码加我微信
  • 验证消息请输入:来自你的博客
  • weinxin
  • 我的微信公众号
  • 微信扫一扫与我交流吧
  • weinxin
Terwer
匿名

发表评论

匿名网友 填写信息

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: