Delete All Your Remote Git Tags in a Row
Today i will introduce a simple command line to delete all your remote git tags.
- Note1: Only OSX System tested.
- Note2: You will probably need to download and install the Apple Developer Tools.
Command line
git ls-remote --tags | awk '{print $2}' | xargs -n1 git push --delete origin
Details
List remote tags
git ls-remote --tags
1 2 3 4 5 |
|
Grep good column
git ls-remote --tags | awk '{print $2}'
1 2 3 4 5 |
|
Deletion
git ls-remote --tags | awk '{print $2}' | xargs -n1 git push --delete origin