Skip to content

Instantly share code, notes, and snippets.

@rickmzp
Created August 28, 2013 01:05
Show Gist options
  • Save rickmzp/6360986 to your computer and use it in GitHub Desktop.
Save rickmzp/6360986 to your computer and use it in GitHub Desktop.
Git aliases
alias g='git'
alias ga='git add'
alias gaa='git add --all'
alias gb='git branch'
alias gc='git commit'
alias gca='git commit -a'
alias gco='git checkout'
alias gd='git diff'
alias gdc='git diff --cached'
alias gf='git fetch'
alias gl='git log'
alias gp='git pull'
alias gpr='git pull --rebase'
alias gpu='git push'
alias gra='git rebase --abort'
alias grc='git rebase --continue'
alias gre='git reset'
alias greh='git reset --hard'
alias gres='git reset --soft'
alias grs='git rebase --skip'
alias gs='git status'
alias gst='git stash'
alias gstl='git stash list'
alias gstp='git stash pop'
alias gsts='git stash show'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment