git pull behavior changed?

5 messages, 2 authors, 2016-06-15 · open the first message on its own page

git pull behavior changed?

From: Aghiles <hidden>
Date: 2016-06-15 22:48:41

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

Re: git pull behavior changed?

From: Sverre Rabbelier <hidden>
Date: 2016-06-15 22:48:41

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

Re: git pull behavior changed?

From: Aghiles <hidden>
Date: 2016-06-15 22:48:41

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

Re: git pull behavior changed?

From: Aghiles <hidden>
Date: 2016-06-15 22:48:41

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

Re: git pull behavior changed?

From: Sverre Rabbelier <hidden>
Date: 2016-06-15 22:48:41

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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help