git删除所有分支
To delete all the local tags simple run the following command
git tag | xargs git tag -d
1
To delete remote tags after deleting the local tags by running the above command, you can run the comand below
git ls-remote --tags --refs origin | cut -f2 | xargs git push origin --delete
1
NOTE: replace origin with your remote handler
编辑 (opens new window)
上次更新: 2023/09/19, 13:33:19