Created
February 3, 2016 18:39
-
-
Save mahemoff/5c9681f0897b8d6348b9 to your computer and use it in GitHub Desktop.
git rename branch alias
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
[alias] | |
mvbranch = "!moveit() { git branch -m $1 $2; git push origin :$1; git push --set-upstream origin $2; }; moveit" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Excellent. Thank you!