Skip to content

Instantly share code, notes, and snippets.

@aaronlelevier
Created June 22, 2018 12:42
Show Gist options
  • Select an option

  • Save aaronlelevier/4147ac784c543bfd8029f13db4669706 to your computer and use it in GitHub Desktop.

Select an option

Save aaronlelevier/4147ac784c543bfd8029f13db4669706 to your computer and use it in GitHub Desktop.
Git command aliases
alias gitlog='git log --pretty=format:"%h%x09%an%x09%ad%x09%s"'
alias gs='git status'
alias gd='git diff'
alias gds='git diff --staged'
alias gl='git log'
alias ga='git add'
alias gb='git branch'
alias gc='git commit'
alias gco='git checkout'
alias gpr='git pull --rebase'
alias gp=' git push -u origin'
alias gpf='git push -u origin --force-with-lease'
alias gcp='git cherry-pick'
alias gls='git ls-files -m'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment