Re: Git user survey and `git pull`
- From
Nicolas Pitre <nico@cam.org>
- Date
- Sep 21, 2006, 18:05 UTC
- Message-ID
- <Pine.LNX.4.64.0609211357450.2627@xanadu.home>
- In-Reply-To
- <Pine.LNX.4.64.0609211027440.4388@g5.osdl.org>
On Thu, 21 Sep 2006, Linus Torvalds wrote:
Show 11 quoted lines
> Right now, a plain "git pull" means "fetch all branches and merge the > first one", and the thing is, that's generally the right thing _only_ if > you pull into "master". > > It's usually exactly the _wrong_ thing to do for any other branch. In > particular, if you work with a project that has lots of branches, and > you're working in another branch (that is directly tracking a remote, for > example), doing a "git pull" definitely should _not_ merge the first head. > It should fetch everything, and possibly merge the _matching_ head. > > Which it doesn't do right now.
I think you're summarizing my grip about git pull quite well. This is really counter-intuitive and I've been bitten by that behavior on many occasions.
Nicolas