<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Git on jpterry.com</title><link>/tags/git/</link><description>Recent content in Git on jpterry.com</description><generator>Hugo</generator><language>en</language><copyright>© John Terry</copyright><lastBuildDate>Tue, 15 Dec 2015 00:00:00 +0000</lastBuildDate><atom:link href="/tags/git/index.xml" rel="self" type="application/rss+xml"/><item><title>My favorite git alias</title><link>/2015/12/15/git-log-graph-authors/</link><pubDate>Tue, 15 Dec 2015 00:00:00 +0000</pubDate><guid>/2015/12/15/git-log-graph-authors/</guid><description>&lt;p&gt;When I use git I constantly need to understand the shape of the history graph.
And the best way to understand graphs is to visualize them.
Maybe you already know about &lt;code&gt;git log --graph --oneline --decorate&lt;/code&gt;,
but that is a lot to type.&lt;/p&gt;
&lt;p&gt;Add this alias to your .bash_profile, or .zshrc.
I call it &lt;code&gt;glga&lt;/code&gt; for &amp;ldquo;git-log-graph-author&amp;rdquo;, you can call it what you want.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#e6edf3;background-color:#0d1117;-moz-tab-size:2;-o-tab-size:2;tab-size:2;"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;alias &lt;span style="color:#79c0ff"&gt;glga&lt;/span&gt;&lt;span style="color:#ff7b72;font-weight:bold"&gt;=&lt;/span&gt;&lt;span style="color:#a5d6ff"&gt;&amp;#34;git log --graph --abbrev-commit --date=short --pretty=format:\
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#a5d6ff"&gt; &amp;#39;%C(yellow)%h%Creset %C(bold blue)(%an)%Creset%C(yellow)%d%Creset %s %Cgreen&amp;lt;%cr, %ar&amp;gt;%Creset&amp;#39;&amp;#34;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;Below is a sample screenshot of the output.
At a glance you can see how the commits are related in the graph,
their shas, their authors, messages, and commit/author dates relative to now.&lt;/p&gt;</description></item></channel></rss>