I need to have format like:
git log --decorate --graph --oneline --date-order
but I need it also:
- to contain date (short)
- to have the same colors
I tried:
git log --decorate --graph --oneline --date-order \
--date=short --pretty=format:"%h %ad %s"
but it’s harder to read (no colors) and does not include branches/tags
The closest simple solution is(thanks VonC):
git log --graph --pretty=format:'%C(yellow)%h%Creset \
-%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' \
--abbrev-commit --date=short
You can try:
It has different color, but you can change them easily.
for instance: