Created
September 21, 2016 15:30
-
-
Save boourns/11c64e2161f6acda707ba224c8eb4e32 to your computer and use it in GitHub Desktop.
Rebase your branch with this 1 simple trick
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
# add to your .bash_profile | |
function rebase(){ | |
curbranch=`git rev-parse --abbrev-ref HEAD` | |
git checkout master | |
git pull origin master | |
git checkout $curbranch | |
git rebase master | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@boourns with
dev
you can also typedev open gh
to open github.dev open pr
to open a PR for a branch (or prompt to create one on GH), ordev open issues
to open that project's issues list.Will be much more useful for everyone when we open source dev of course :) In the meantime, it is useable on all projects (even without dev.yml's) if you have dev installed.