Skip to content

Instantly share code, notes, and snippets.

@tyrelsouza
Created August 18, 2015 19:38
Show Gist options
  • Save tyrelsouza/dccd5d6156d278925f30 to your computer and use it in GitHub Desktop.
Save tyrelsouza/dccd5d6156d278925f30 to your computer and use it in GitHub Desktop.
Custom Git config commands
[alias]
ls = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate
ll = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --numstat
ld = log --pretty=format:"%C(yellow)%h\\ %ad%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --date=relative
logtree= "log --graph --oneline --decorate --all"
la = "!git config -l | grep alias | cut -c 7-"
recent = "!git for-each-ref --format=\"%(committerdate:relative) | %(refname)\" --sort=-committerdate refs/heads | sed '/master/d' | head -n 10"
tabsescape = "!git diff --color | sed 's/\\t/\\\\t/g'"
tabs = "!git diff --color | sed 's/\\t/⌑/g'"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment