Created
January 5, 2011 18:16
-
-
Save bunnymatic/766717 to your computer and use it in GitHub Desktop.
This bash function, when run from your current branch will jump to master, pull and jump back to your current branch, leaving you all ready to rebase master and then merge branch into master. Add it to your .profile and roll on.
This file contains hidden or 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
rebase_prep() { | |
git checkout master && git pull && git checkout - | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
as it turns out, the git alias is much nicer to work with. https://gist.github.com/766967