Skip to content

Instantly share code, notes, and snippets.

@paulbooth
Last active December 12, 2015 02:38
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 paulbooth/4700327 to your computer and use it in GitHub Desktop.
Save paulbooth/4700327 to your computer and use it in GitHub Desktop.
Aliases for quick git action. Slap this in ~/.bash_aliases (create it if it doesn't exist)
alias twag='echo "That was a joke." | say'
alias ga='git add'
alias gp='git push'
alias gl='git log'
alias gs='git status'
alias gd='git diff'
alias gc='git commit -am'
alias gma='git commit -am'
alias gb='git branch'
alias gco='git checkout'
alias gra='git remote add'
alias grr='git remote rm'
alias gpu='git pull'
alias gcl='git clone'
alias gph='git push heroku master'
alias hlt='heroku logs -t'
alias edit_aliases='subl ~/.bash_aliases'
alias maclogout="osascript -e 'tell application \"System Events\" to log out'"
function gcp() { git commit -am "$@" ; git push;}
function gcpp() { git commit -am "$@" ; git pull; git push;}
function gcph() { git commit -am "$@" ; git push; git push heroku master;}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment