Created
September 21, 2017 18:11
-
-
Save mchurichi/184934c48eb9125f1c1b1d4f3b33f76f to your computer and use it in GitHub Desktop.
git aliases
This file contains 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
# logs | |
# short form, with colors and branch/tag annotations | |
ls = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate | |
# changed files per commit | |
ll = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --numstat | |
# no color | |
lnc = log --pretty=format:"%h\\ %s\\ [%cn]" | |
# one line commits | |
lds = log --pretty=format:"%C(yellow)%h\\ %ad%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --date=short # git lds -1 (long standup) | |
# one line commits with relative dates (standup: git ld -1) | |
ld = log --pretty=format:"%C(yellow)%h\\ %ad%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --date=relative | |
# simple one line commits | |
le = log --oneline --decorate # short log | |
filelog = log -u | |
fl = log -u |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment