Created
December 14, 2013 23:41
-
-
Save dleavitt/7966550 to your computer and use it in GitHub Desktop.
Bulk rename git feature branches to "old" branches
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
%x{git branch | grep feature}.split("\n").map(&:strip).map {|o| [o, o.gsub(/^feature\//, "old/")] }.map {|(o, n)| %x{git branch -m #{o} #{n}} } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment