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 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 | |
} |
Also: git fetch origin && git rebase origin/master
while staying on your branch.
Many ways to shave a yak...
@boourns with dev
you can also type dev open gh
to open github. dev open pr
to open a PR for a branch (or prompt to create one on GH), or dev 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.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
related command, open github for current git repo: