Quantcast
Channel: Java mon amour
Viewing all articles
Browse latest Browse all 1121

git delete all tags matching a regex

$
0
0
this will delete all remote tags containig the "iap-copy" string (more complex cases can be achieved with egrep)


git clone myrepourl
cd myproject
git tag --list | grep iap-copy | sort > allnaughtytags.txt
for mytag in `cat allnaughtytags.txt`; do git push --delete origin $mytag ; done

The method is very slow.... there are much faster ways, but this is very simple and reliable

tested with git 1.9.4



Viewing all articles
Browse latest Browse all 1121

Trending Articles