Created
October 23, 2012 20:18
-
-
Save atljeremy/3941266 to your computer and use it in GitHub Desktop.
git auto rebase bash function
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
git() { if [[ $@ == "pull" ]]; | |
then command git pull --rebase; | |
elif [[ $@ == "pull origin dev" ]]; | |
then command git pull --rebase origin dev; | |
elif [[ $@ == "pull origin master" ]]; | |
then command git pull --rebase master; | |
else command git "$@"; | |
fi; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment