Skip to content

Instantly share code, notes, and snippets.

@mdouchement
Last active December 19, 2018 11: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 mdouchement/ef31028a91c09faddbef9e35def02f28 to your computer and use it in GitHub Desktop.
Save mdouchement/ef31028a91c09faddbef9e35def02f28 to your computer and use it in GitHub Desktop.
Git aliases from ZSH (without zsh)
alias gco='git checkout'
alias gb='git branch'
alias gd='git diff'
alias glgg='git log --graph --max-count=10'
alias glgga='git log --graph --decorate --all'
alias gst='git status'
alias gss='git status --short'
alias ga='git add'
alias gc='git commit'
alias ggpull='git pull origin $(git rev-parse --abbrev-ref HEAD)'
alias ggpush='git push origin $(git rev-parse --abbrev-ref HEAD)'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment