Skip to content

Instantly share code, notes, and snippets.

@tkalfigo
Last active July 4, 2017 19:03
Show Gist options
  • Save tkalfigo/8093636 to your computer and use it in GitHub Desktop.
Save tkalfigo/8093636 to your computer and use it in GitHub Desktop.
Useful git aliases
# alias gitlo='git log --no-walk --tags --pretty="%h %d %s" --decorate=full --oneline'
alias gitlo='git log --pretty="%h %ad %d %s (%an)" --decorate=full --graph -n 30 | grep -E --color "^|tag: "'
alias gitloa='git log --no-walk --tags --pretty="%h %d %s" --decorate=full --author=youremail@foo.com --oneline'
alias gitbra="git branch -vva"
alias gitsta="git status"
alias gitdif="git diff --color-words"
alias gitlosum="git log --stat --summary"
alias gitdifstat="git diff --stat --summary"
alias gitpull="git pull --rebase"
alias gitpru="git remote prune origin"
alias gitstashparentdiff='git stash show -p'
alias gitstashworkingcopydiff='git diff'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment