Hello,
I used to 'git pull' in a branch and it was working without any
questions asked. But now, if I do the following:
git checkout -b test
git pull
I get a warning telling me that "You asked me to pull without
telling me which branch ...". I would expect that my new local
branch behaves the same way as the master branch.
I am using 1.7.0.3
-- aghiles
Heya,
On Wed, Apr 21, 2010 at 23:13, Aghiles [off-list ref] wrote:
git checkout -b test
When you do this you're telling git "I want a new branch from where I
am right now". If you want to be able to pull in a similar way to how
master works, use the '--track' option.
--
Cheers,
Sverre Rabbelier
When you do this you're telling git "I want a new branch from where I
am right now". If you want to be able to pull in a similar way to how
master works, use the '--track' option.
This means that when pulling I will be pulling from the remote ? That
is what I want to achieve. I just want all my branches to pull from the
same remote (as my master branch does).
Thank you for your help.
-- aghiles
When you do this you're telling git "I want a new branch from where I
am right now". If you want to be able to pull in a similar way to how
master works, use the '--track' option.
Actually, the '--track' option is exactly what I don't want ! :) It tells me:
"Branch test set up to track local branch refs/heads/master."
Without the '--track' option it seems to work as expected: when I pull
it downloads data form the remote but then stops before merging.
This used to work! What happened ? :(
-- aghiles
Heya,
On Wed, Apr 21, 2010 at 23:55, Aghiles [off-list ref] wrote:
Without the '--track' option it seems to work as expected: when I pull
it downloads data form the remote but then stops before merging.
This used to work! What happened ? :(
See the --track documentation, you need to tell it to track upstream
instead of master.
--
Cheers,
Sverre Rabbelier