Skip to content

Instantly share code, notes, and snippets.

@marty-wang
Last active October 31, 2016 23:04
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 marty-wang/b8c1101d81174c9afc86e33f68c19a19 to your computer and use it in GitHub Desktop.
Save marty-wang/b8c1101d81174c9afc86e33f68c19a19 to your computer and use it in GitHub Desktop.
git config --global alias.co checkout
git config --global alias.br branch
git config --global alias.brv branch -vv
git config --global alias.ci commit
git config --global alias.st status
git config --global alias.fix commit --amend
git config --global alias.pr pull --rebase
// always rebase for pull
git config --global branch.autosetuprebase always
// push the current branch to its upstream branch
git config --global push.default upstream
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment