git删除所有分支

To delete all the local tags simple run the following command

1
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

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

NOTE: replace origin with your remote handler

作者

Terwer

发布于

2022-07-15

更新于

2022-07-15

许可协议

评论