Skip to content

Instantly share code, notes, and snippets.

@ricardobeat
Created December 3, 2014 10:28
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ricardobeat/403725cf3562f86e0d15 to your computer and use it in GitHub Desktop.
Save ricardobeat/403725cf3562f86e0d15 to your computer and use it in GitHub Desktop.
git aliases
[alias]
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 user.name)\""
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