If you are seeing that default git log
is not visual and hard to read. You can try to do some customizes by using --graph
and --pretty
.
git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
Or shorter with alias
git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit"
Finally
git lg
Let try to update colors as you like.
Happy coding!
Top comments (0)