× {{alert.msg}} Never ask again
Get notified about new tutorials RECEIVE NEW TUTORIALS

Git: Better and Less Boring Git Log

Mouna Cheikhna
Nov 20, 2016
<pre>git log --graph --pretty=format:<span style="color:rgb(24, 54, 145)">'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)&lt;%an&gt;%Creset'</span> --abbrev-commit</pre> <p>or add an alias :</p> <pre>git config --global <span style="color:rgb(0, 134, 179)">alias</span>.lg <span style="color:rgb(24, 54, 145)">"log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)&lt;%an&gt;%Creset' --abbrev-commit"</span></pre>
comments powered by Disqus