Created
August 18, 2015 19:38
-
-
Save tyrelsouza/dccd5d6156d278925f30 to your computer and use it in GitHub Desktop.
Custom Git config commands
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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