git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: git pull behavior changed?

From
AAghiles <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
Previous: Matthieu MoyNext: Jeff King
Message 9 of 22 in “git pull behavior changed?”
  1. AghilesApr 21, 2010
  2. Sverre RabbelierApr 21, 2010
  3. AghilesApr 21, 2010
  4. AghilesApr 21, 2010
  5. Sverre RabbelierApr 21, 2010
  6. Matthieu MoyApr 21, 2010
  7. AghilesApr 21, 2010
  8. Matthieu MoyApr 21, 2010
  9. AghilesApr 21, 2010
  10. Jeff KingApr 22, 2010
  11. AghilesApr 22, 2010
  12. Jeff KingApr 22, 2010
  13. AghilesApr 22, 2010
  14. Jeff KingApr 22, 2010
  15. Randal L. SchwartzApr 21, 2010
  16. AghilesApr 21, 2010
  17. Petr BaudisApr 22, 2010
  18. Junio C HamanoApr 22, 2010
  19. Creating tracked branchesPetr Baudis, Apr 22, 2010
  20. Andreas SchwabApr 22, 2010
  21. Petr BaudisApr 22, 2010
  22. AghilesApr 22, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.