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 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
This goes hand in hand with Jared's method for integrating feature branches in git. http://blog.carbonfive.com/2010/11/01/integrating-topic-branches-in-git/