Note that there are some explanatory texts on larger screens.

plurals
  1. POgit: difference between "branchname" and "refs/head/branchname"
    text
    copied!<p>Best to be explained at an example: I am on branch 0.58 of repository and this his how I pull:</p> <pre><code>git pull origin 0.58 </code></pre> <p>When I just call "git pull", I get:</p> <pre><code>ip238:openlierox az$ git pull You asked me to pull without telling me which branch you want to merge with, and 'branch.0.58.merge' in your configuration file does not tell me either. Please name which branch you want to merge on the command line and try again (e.g. 'git pull &lt;repository&gt; &lt;refspec&gt;'). See git-pull(1) for details on the refspec. If you often merge with the same branch, you may want to configure the following variables in your configuration file: branch.0.58.remote = &lt;nickname&gt; branch.0.58.merge = &lt;remote-ref&gt; remote.&lt;nickname&gt;.url = &lt;url&gt; remote.&lt;nickname&gt;.fetch = &lt;refspec&gt; See git-config(1) for details. </code></pre> <p>Seems I probably forgot some option (--track ?) when I checked that branch out. Anyway, I have set this now:</p> <pre><code>git config branch.0.58.merge 0.58 git config branch.0.58.remote origin </code></pre> <p>And this seems to work. Then, just because of interest, I took a look at some other branch about these setting:</p> <pre><code>ip238:openlierox az$ git config branch.0.57.merge refs/heads/0.57 ip238:openlierox az$ git config branch.0.57.remote origin </code></pre> <p>I was wondering now, is there a difference between "0.58" or should I specify "refs/heads/0.58"?</p> <p>What is the difference exactly?</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