Created
February 9, 2015 17:27
-
-
Save edenwaith/3eb5c41c5a7d68449ec9 to your computer and use it in GitHub Desktop.
Rename multiple git branches from the command line
This file contains 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 characters
git branch | grep defects | awk '{original=$1; sub("defects","old-defects"); print original, $1}' | xargs -n 2 git branch -m |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment