Created
August 13, 2012 16:04
-
-
Save koenongena/3342202 to your computer and use it in GitHub Desktop.
git aliases
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
[alias] | |
current-branch =rev-parse --abbrev-ref HEAD | |
[alias] | |
rebase-onto-master = !CURRENT=$(git rev-parse --abbrev-ref HEAD) && git checkout master && git pull && git checkout $CURRENT && git rebase -i master | |
[alias] | |
merge-into-master = !CURRENT=$(git rev-parse --abbrev-ref HEAD) && git checkout master && git merge $CURRENT |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment