
Hi all, If I do git clone darcs.haskell.org:/srv/darcs/ghc.git cd ghc git show origin then the output is [...] Local branch configured for 'git pull': master merges with remote master [...] However, none of: git remote rm origin git remote add origin darcs.haskell.org:/srv/darcs/ghc.git git remote show origin git remote rm origin git remote add origin darcs.haskell.org:/srv/darcs/ghc.git -m master git remote show origin git remote rm origin git remote add origin darcs.haskell.org:/srv/darcs/ghc.git -t master git remote show origin git remote rm origin git remote add origin darcs.haskell.org:/srv/darcs/ghc.git -t master -m master git remote show origin have the "Local branch configured for 'git pull':" section. So having done "git remote rm origin", how do I configure the git pull branches again? Thanks Ian

You can you -t when creating a branch to do what you want. Or for an existing branch you can do it manually. i.e: git config branch.master.remote origin git config branch.master.merge refs/heads/master Which should give you the equivalent of a branch created with -t. On 04/02/13 20:12, Ian Lynagh wrote:
Hi all,
If I do git clone darcs.haskell.org:/srv/darcs/ghc.git cd ghc git show origin then the output is [...] Local branch configured for 'git pull': master merges with remote master [...]
However, none of: git remote rm origin git remote add origin darcs.haskell.org:/srv/darcs/ghc.git git remote show origin
git remote rm origin git remote add origin darcs.haskell.org:/srv/darcs/ghc.git -m master git remote show origin
git remote rm origin git remote add origin darcs.haskell.org:/srv/darcs/ghc.git -t master git remote show origin
git remote rm origin git remote add origin darcs.haskell.org:/srv/darcs/ghc.git -t master -m master git remote show origin have the "Local branch configured for 'git pull':" section.
So having done "git remote rm origin", how do I configure the git pull branches again?
Thanks Ian
_______________________________________________ ghc-devs mailing list ghc-devs@haskell.org http://www.haskell.org/mailman/listinfo/ghc-devs
-- CJ van den Berg mailto:cj@vdbonline.com xmpp:neurocyte@gmail.com

On Mon, Feb 4, 2013 at 11:12 AM, Ian Lynagh
Hi all,
If I do git clone darcs.haskell.org:/srv/darcs/ghc.git cd ghc git show origin then the output is [...] Local branch configured for 'git pull': master merges with remote master [...]
However, none of: git remote rm origin git remote add origin darcs.haskell.org:/srv/darcs/ghc.git git remote show origin
git remote rm origin git remote add origin darcs.haskell.org:/srv/darcs/ghc.git -m master git remote show origin
git remote rm origin git remote add origin darcs.haskell.org:/srv/darcs/ghc.git -t master git remote show origin
git remote rm origin git remote add origin darcs.haskell.org:/srv/darcs/ghc.git -t master -m master git remote show origin have the "Local branch configured for 'git pull':" section.
So having done "git remote rm origin", how do I configure the git pull branches again?
I'm not 100% sure I've understood the question, but I'll try to help anyway... I believe the easiest solution is to use the -u flag when doing an explicit push. For example: git push -u origin master The manpage says: -u, --set-upstream 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). I hope that helps, Jason

On Mon, Feb 04, 2013 at 07:12:19PM +0000, Ian Lynagh wrote:
So having done "git remote rm origin", how do I configure the git pull branches again?
Looks like this does it: git remote add origin darcs.haskell.org:/srv/darcs/ghc.git git fetch origin git branch --set-upstream master origin/master Thanks Ian
participants (3)
-
CJ van den Berg
-
Ian Lynagh
-
Jason Dagit