title: Creating a branch from a remote branch (EGit)
body: <p>I am using EGit 2.1.0 in eclipse juno.</p>
  
  <p>On a repository I right-click the <strong>origin/master</strong> branch in the <strong>Remote Tracking</strong> folder and create a new branch:</p>
  
  <pre><code>Source ref: refs/remotes/origin/master
  Branch name: refs/heads/MyFeature
  Merge=true
  Checkout=true
  </code></pre>
  
  <p>So the <strong>MyFeature</strong> branch is <em>based</em> on the content of <strong>origin/master</strong> at the time its created. As a result a local branch <strong>MyFeature</strong> is created in the <strong>Local</strong> folder.</p>
  
  <p>If I configure the branch is says:</p>
  
  <pre><code>Upstream Branch: refs/heads/master
  Remote: origin
  </code></pre>
  
  <p>I am confused about this last part. The <strong>MyFeature</strong> branch is based on <strong>origin/master</strong>. Why does it default to pull changes from the local master branch and not the remote master branch (which it was based on)?</p>
  
  <p>From command-line you would do:</p>
  
  <pre><code>$ git branch --track MyFeature origin/master
  Branch MyFeature set up to track remote branch refs/remotes/origin/master.
  </code></pre>