Skip to content

Instantly share code, notes, and snippets.

@stim371
Created November 6, 2011 00:00
Show Gist options
  • Save stim371/1342228 to your computer and use it in GitHub Desktop.
Save stim371/1342228 to your computer and use it in GitHub Desktop.
typical git commands
$ git config --global alias.br branch
$ git config --global alias.co checkout
$ git config --global alias.ci commit
$ git config --global alias.pom 'push origin master'
$ git br
$ git br solutions
$ git co solutions
$ git ci -m "commit message here"
$ git pom
$ git config --get-regexp '^alias\.'
alias.st status
alias.br branch
alias.co checkout
alias.ci commit
#heck, you could even alias that
$ git config --global alias.listalias 'config --get-regexp '^alias\.''
#and call it like
$ git listalias
alias.st status
alias.br branch
alias.co checkout
alias.ci commit
alias.listalias config --get-regexp ^alias.
$ git config --global --unset alias.br
#to remove our alias for the "branch" command
$ git branch
$ git branch solutions
$ git checkout solutions
$ git commit -m "commit message here"
$ git push origin master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment