Created
November 17, 2014 13:33
-
-
Save dearaujoj/f36fb463c9d8cf19c16b to your computer and use it in GitHub Desktop.
Revisions
-
dearaujoj created this gist
Nov 17, 2014 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,7 @@ #check tag with specific value for i in 2013 ; do git tag -l | grep "$i" ; git ls-remote --tags origin | awk '{print ":"$2}' | grep "$i" | grep -v '{}' ; done #delete local and remote tag with specific value for i in 2013 ; do git tag -l | grep "$i" | xargs git tag -d ; git ls-remote --tags origin | awk '{print ":"$2}' | grep "$i" | grep -v '{}' | xargs git push origin ; done #credits http://anavarre.net/2014/01/07/delete-local-and-remote-git-tags-programatically