Another developer I work with just showed me a much nicer git log command experience. It gives pretty colours, the commit id, the author and much more.
The idea comes from Filipe Kiss' blog however the solution I use was submitted in the comments of the blog post by LordMonkey
The following command creates an alias lg for the git log command.
git config --global alias.lg "log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative"
git lg will then result in something similar to
I have blurred text to protect privacy
The idea comes from Filipe Kiss' blog however the solution I use was submitted in the comments of the blog post by LordMonkey
The following command creates an alias lg for the git log command.
git config --global alias.lg "log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative"
git lg will then result in something similar to
I have blurred text to protect privacy
Comments
Post a Comment