Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>As mentioned in the question "<a href="https://stackoverflow.com/questions/53569/how-to-get-the-changes-on-a-branch-in-git">How to get the changes on a branch in git</a>"</p> <pre><code>git log HEAD..branch </code></pre> <p>could be what you are looking for here.</p> <pre><code> x---y---z---branch / ---a---b---c---d---e---HEAD </code></pre> <p>It would return x, y, z. Note: only two dots, not three here: <code>HEAD..branch</code>.</p> <p>As mentioned in this other question:</p> <blockquote> <p>This is identical to <code>git log branch --not HEAD</code>, and means "all commits on branch that aren't on <code>HEAD</code>"</p> </blockquote> <p>Note: you need a <code>git fetch</code> first, in order to update your local copy of a remote branch. Without that, you would not pick any new modification on the remote branch.</p> <hr> <p>Note: a <a href="http://book.git-scm.com/4_tracking_branches.html" rel="nofollow noreferrer">tracking branch</a> is a local branch that is connected to a remote branch. When you push and pull on that branch, it automatically pushes and pulls to the remote branch that it is connected with.</p> <p>When you clone a repository, Git only creates a branch corresponding to the remote's master. For each other branch that exists at the remote that you wish to work on locally, you need to create a local branch to track the remote branch.</p> <p>A patch could be in the making (June 2009 for the <a href="http://lists.zerezo.com/git/msg694246.html" rel="nofollow noreferrer">patch <em>proposition</em></a>) to add to <code>git remote</code> command the '<code>tracking</code>' option, with (this is not a <em>definitive</em> description, but still a work in progress)</p> <pre><code>git remote tracking &lt;remote&gt; &lt;remote branch&gt; </code></pre> <blockquote> <p>would show all local branches that track <code>&lt;remote branch&gt;</code>, and have <code>&lt;remote&gt;</code> as default remote, while</p> </blockquote> <pre><code>git remote tracking &lt;local branch&gt; </code></pre> <blockquote> <p>would show <code>&lt;remote&gt;</code> and <code>&lt;remote branch&gt;</code> if <code>&lt;local branch&gt;</code> is following remote-tracking branch.</p> </blockquote> <p>I do not see this feature in the <a href="http://article.gmane.org/gmane.linux.kernel/868631" rel="nofollow noreferrer">upcoming Git1.6.4</a> though.</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. 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