Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
git aliases
lg = log -20 --graph --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn\\ %C(cyan)%cr]" --decorate --abbrev-commit --date=relative
who = shortlog -sn
dip = diff --patience
stat = status -sb
snapshot = !git stash save "snapshot: $(date)" && git stash apply "stash@{0}"
word = diff --word-diff=color
up = "!git fetch --all -p && git rebase @{u}"
mine = "!git lg --author=\"$(git config\""
aliases = "!git config --list | grep alias | cut -c 7- | sed 's/=//' | column -t -s ''"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment