by ngkabra · 14y ago · 0 comments
df = diff --color --color-words --abbrev
st = status -s
l = log --graph --pretty=oneline --abbrev-commig --decorate
There are a lot more at this stackoverflow thread: http://superuser.com/questions/169695/what-are-your-favorite...Is there a `git du' ?
# --- LOGS ---
ll = "log --pretty=oneline --abbrev-commit"
lg = log --pretty=oneline --abbrev-commit --graph --decorate --date=relative
lgt = log --graph --pretty=format:'%Cred%h%Creset %s %Cgreen(%cr)%Creset' --abbrev-commit --date=relative
lgtt = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%Creset' --abbrev-commit --date=relative
I almost never user "git lgt" or "git lgtt." Instead I mostly use "git ll", and sometimes "git lg", though if you're doing a lot of merging around, the graph can get a bit convoluted. git diff --color
Or modify ~.gitconfig: [color]
diff = auto
[color "diff"]
meta = yellow bold
frag = magenta bold
old = red bold
new = green bold