Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Your question is a little unclear because I'm not sure if you want to see a diff/patch of the changes between <code>master</code> and <code>feature</code>, or you just want to see which branches contain which commits that the other branch doesn't have.</p> <p>Assuming that you just want to see what commits are in your <code>feature</code> branch that don't exist in <code>master</code> (i.e. which commits in <code>feature</code> are "ahead" of <code>master</code>), then you can do</p> <pre><code>$ git log --oneline --graph master..feature </code></pre> <p>If you want to see how both <code>master</code> and <code>feature</code> have diverged, you can use this command:</p> <pre><code>$ git log --oneline --graph --first-parent \ --decorate --left-right master...feature &gt; 5bef654 (feature) A ... &gt; f7c65ea B ... &gt; fc66245 C ... &gt; 7435fc0 D ... &lt; bf68204 (master) X ... &lt; 0c10ed1 Y ... &lt; 27bb774 Z ... </code></pre> <p>The above output shows commits in <code>master</code> that are not in <code>feature</code> with <code>&lt;</code> in front of them (since you used <code>master...feature</code> with master on the left <code>&lt;</code> side of the command), while commits in <code>feature</code> that aren't in master are marked with <code>&gt;</code> since you used <code>feature</code> on the right side of <code>master...feature</code>. The triple dots <code>...</code> in this form are important, don't leave them out.</p> <p>You can learn more about specifying <a href="http://git-scm.com/book/en/Git-Tools-Revision-Selection#Commit-Ranges" rel="noreferrer">Commit Range from the Pro Git book</a>.</p>
 

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