Skip to content

Instantly share code, notes, and snippets.

@atljeremy
Created October 23, 2012 20:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save atljeremy/3941266 to your computer and use it in GitHub Desktop.
Save atljeremy/3941266 to your computer and use it in GitHub Desktop.
git auto rebase bash function
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