<br><br><div class="gmail_quote">On Mon, Feb 4, 2013 at 11:12 AM, Ian Lynagh <span dir="ltr"><<a href="mailto:ian@well-typed.com" target="_blank">ian@well-typed.com</a>></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 'git pull':<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 "Local branch configured for 'git pull':" section.<br>
<br>
So having done "git remote rm origin", how do I configure the git pull<br>
branches again?<br></blockquote><div><br></div><div>I'm not 100% sure I've understood the question, but I'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.<name>.merge in git-config(1).</div>
</div><div><br></div><div>I hope that helps,</div><div>Jason</div></div>