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
相关文章
- 扫码加我微信
- 验证消息请输入:来自你的博客
-
- 我的微信公众号
- 微信扫一扫与我交流吧
-
评论