Re: git pull behavior changed?
- From
- Aghiles <aghilesk@gmail.com>
- Date
- Apr 21, 2010, 22:41 UTC
- Message-ID
- <z2t3abd05a91004211541y1c2c5467k5731819da7fe625@mail.gmail.com>
- In-Reply-To
- <vpq8w8gjvhn.fsf@bauges.imag.fr>
> Otherwise, --set-upstream may help. But neither will help untill you > RTFM.
Matthieu, I spend my days reading the git manual and also the source code, which is not normal IMHO. I always look for examples but in the case of 'git branch' there is not many that are really useful!
I suggest to add this as an example since it is probably the most common case (one would expect that a new branch simply mimics the characteristics of the starting branch, no ?)
git branch --track small_fixes origin
And it does what I want.
Again, the behavior changed: just upgraded to 1.7.0.3, before then I was doing branches like this:
git checkout -b small_fixes git pull
>From my point of view, that was neat!
The --track and <start-point>=origin seemed to be implied. I find that this is a better better default (OR 'git pull' was defaulting to 'git pull origin HEAD').
As of now, 'git branch x' seem to be of little use without more configuration.
-- aghiles