Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I usually use</p> <pre><code>git log --graph --full-history --all --pretty=format:"%h%x09%d%x20%s" </code></pre> <p>With colors (if your shell is Bash):</p> <pre><code>git log --graph --full-history --all --color \ --pretty=format:"%x1b[31m%h%x09%x1b[32m%d%x1b[0m%x20%s" </code></pre> <p>This will print text-based representation like this:</p> <pre><code>* 040cc7c (HEAD, master) Mannual is NOT built by default * a29ceb7 Removed offensive binary file that was compiled on my machine and was hence incompatible with other machines. | * 901c7dd (cvc3) cvc3 now configured before building | * d9e8b5e More sane Yices SMT solver caller | | * 5b98a10 (nullvars) All uninitialized variables get zero inits | |/ | * 1cad874 CFLAGS for cvc3 to work succesfully | * 1579581 Merge branch 'llvm-inv' into cvc3 | |\ | | * a9a246b nostaticalias option | | * 73b91cc Comment about aliases. | | * 001b20a Prints number of iteration and node. | |/ |/| | * 39d2638 Included header files to cvc3 sources | * 266023b Added cvc3 to blast infrastructure. | * ac9eb10 Initial sources of cvc3-1.5 |/ * d642f88 Option -aliasstat, by default stats are suppressed </code></pre> <p>(You could just use <code>git log --format=oneline</code>, but it will tie commit messages to numbers, which looks less pretty IMHO).</p> <p>To make a shortcut for this command, you may want to edit your <code>~/.gitconfig</code> file:</p> <pre><code>[alias] gr = log --graph --full-history --all --color --pretty=tformat:"%x1b[31m%h%x09%x1b[32m%d%x1b[0m%x20%s%x20%x1b[33m(%an)%x1b[0m" </code></pre> <hr> <p>However, as <a href="https://stackoverflow.com/users/508745/sodel-the-vociferous">Sodel the Vociferous</a> notes in the comments, such long formatting command is hard to memorize. Usually, it's not a problem as you may put it into the <code>~/.gitconfig</code> file. However, if you sometimes have to log in to a remote machine where you can't modify the config file, you could use a more simple but faster to type version:</p> <pre><code>git log --graph --oneline </code></pre>
    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.
 

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