Skip to content

Instantly share code, notes, and snippets.

@sundeepgupta
Created October 22, 2015 13:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sundeepgupta/68231a9527c48ef6dcd4 to your computer and use it in GitHub Desktop.
Save sundeepgupta/68231a9527c48ef6dcd4 to your computer and use it in GitHub Desktop.
Loop over bash output list.
git branch -r | grep origin/release $1 | while read b; do t=${b:7}; git tag $t $b; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment