Skip to content

Instantly share code, notes, and snippets.

@mahemoff
Created February 3, 2016 18:39
Show Gist options
  • Select an option

  • Save mahemoff/5c9681f0897b8d6348b9 to your computer and use it in GitHub Desktop.

Select an option

Save mahemoff/5c9681f0897b8d6348b9 to your computer and use it in GitHub Desktop.
git rename branch alias
[alias]
mvbranch = "!moveit() { git branch -m $1 $2; git push origin :$1; git push --set-upstream origin $2; }; moveit"
@demisx

demisx commented Apr 15, 2016

Copy link
Copy Markdown

Excellent. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment