<br><br><div class="gmail_quote">On Mon, Feb 4, 2013 at 11:12 AM, Ian Lynagh <span dir="ltr">&lt;<a href="mailto:ian@well-typed.com" target="_blank">ian@well-typed.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Hi all,<br>
<br>
If I do<br>
    git clone darcs.haskell.org:/srv/darcs/ghc.git<br>
    cd ghc<br>
    git show origin<br>
then the output is<br>
    [...]<br>
    Local branch configured for &#39;git pull&#39;:<br>
      master merges with remote master<br>
    [...]<br>
<br>
However, none of:<br>
    git remote rm origin<br>
    git remote add origin darcs.haskell.org:/srv/darcs/ghc.git<br>
    git remote show origin<br>
<br>
    git remote rm origin<br>
    git remote add origin darcs.haskell.org:/srv/darcs/ghc.git -m master<br>
    git remote show origin<br>
<br>
    git remote rm origin<br>
    git remote add origin darcs.haskell.org:/srv/darcs/ghc.git -t master<br>
    git remote show origin<br>
<br>
    git remote rm origin<br>
    git remote add origin darcs.haskell.org:/srv/darcs/ghc.git -t master -m master<br>
    git remote show origin<br>
have the &quot;Local branch configured for &#39;git pull&#39;:&quot; section.<br>
<br>
So having done &quot;git remote rm origin&quot;, how do I configure the git pull<br>
branches again?<br></blockquote><div><br></div><div>I&#39;m not 100% sure I&#39;ve understood the question, but I&#39;ll try to help anyway...</div><div><br></div><div>I believe the easiest solution is to use the -u flag when doing an explicit push. For example:</div>
<div>git push -u origin master</div><div><br></div><div>The manpage says:</div><div><div>       -u, --set-upstream</div><div>           For every branch that is up to date or successfully pushed, add upstream (tracking) reference, used by argument-less git-pull(1) and other commands. For more information, see branch.&lt;name&gt;.merge in git-config(1).</div>
</div><div><br></div><div>I hope that helps,</div><div>Jason</div></div>