Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I like, with <a href="http://git-scm.com/docs/git-log" rel="noreferrer"><code>git log</code></a>, to do:</p> <pre><code> git log --graph --oneline --branches </code></pre> <p>(also with --all, for viewing remote branches as well)</p> <p>Works with recent Git releases: introduced <a href="http://www.kernel.org/pub/software/scm/git/docs/RelNotes-1.6.3.txt" rel="noreferrer">since <strong>1.6.3</strong></a> (<a href="http://git.kernel.org/?p=git/git.git;a=commit;h=f01f1099f40f24fe6f7802185340a6fa3a3d4f35" rel="noreferrer">Thu, 7 May 2009</a>)</p> <blockquote> <ul> <li><p>"<code>--pretty=&lt;style&gt;</code>" option to the log family of commands can now be spelled as "<code>--format=&lt;style&gt;</code>".<br> In addition, <code>--format=%formatstring</code> is a short-hand for <code>--pretty=tformat:%formatstring</code>.</p></li> <li><p><strong>"<code>--oneline</code>" is a synonym for "<code>--pretty=oneline --abbrev-commit</code>".</strong></p></li> </ul> </blockquote> <pre><code>PS D:\git\tests\finalRepo&gt; git log --graph --oneline --branches --all * 4919b68 a second bug10 fix * 3469e13 a first bug10 fix * dbcc7aa a first legacy evolution | * 55aac85 another main evol | | * 47e6ee1 a second bug10 fix | | * 8183707 a first bug10 fix | |/ | * e727105 a second evol for 2.0 | * 473d44e a main evol |/ * b68c1f5 first evol, for making 1.0 </code></pre> <p>You can also limit the span of the log display (number of commits):</p> <pre><code>PS D:\git\tests\finalRepo&gt; git log --graph --oneline --branches --all -5 * 4919b68 a second bug10 fix * 3469e13 a first bug10 fix * dbcc7aa a first legacy evolution | * 55aac85 another main evol | | * 47e6ee1 a second bug10 fix </code></pre> <p>(show only the last 5 commits)</p> <hr> <p>What I do not like about the current selected solution is:</p> <pre><code> git log --graph </code></pre> <p>It displayed way too much info (when I want only to look at a quick summary):</p> <pre><code>PS D:\git\tests\finalRepo&gt; git log --graph * commit 4919b681db93df82ead7ba6190eca6a49a9d82e7 | Author: VonC &lt;vonc@laposte.net&gt; | Date: Sat Nov 14 13:42:20 2009 +0100 | | a second bug10 fix | * commit 3469e13f8d0fadeac5fcb6f388aca69497fd08a9 | Author: VonC &lt;vonc@laposte.net&gt; | Date: Sat Nov 14 13:41:50 2009 +0100 | | a first bug10 fix | </code></pre> <p><code>gitk</code> is great, but forces me to leave the shell session for another window, whereas displaying the last n commits quickly is often enough.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload