Cheat sheet
Show commits/branches as tree (source):
git log --graph --pretty=oneline --abbrev-commit git config --global alias.lgb "log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset%n' --abbrev-commit --date=relative --branches" git lgb
- Other nice log:
git log --graph --oneline --branches -n10 [alias] l = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%<(12)%ar)%C(reset) %s% %C(dim white) - %an %C(auto)%d%C(reset)' ll = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%<(12)%ar)%C(reset) %s% %C(dim white) - %an %C(auto)%d%C(reset)'
Posts
