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

Re: Git branching & pulling

From
Junio C Hamano <junkio@cox.net>
Date
May 19, 2007, 06:28 UTC
Message-ID
<7vveepxr7m.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<464E97A4.4050702@midwinter.com>
Steven Grimm <koreth@midwinter.com> writes:
Show 17 quoted lines
> Junio C Hamano wrote:
>> I personally never understood why people would just want to say
>> "git pull" without saying anything else, but what described in
>> the DEFAULT BEHAVIOUR section is how it works.
>>
>
> I do that all the time, e.g. when I'm syncing the satellite repo on my
> laptop with the mothership repo in my account on my company's
> server. The satellite only ever talks to the mothership and I am
> always interested in pulling down all the changes I've committed to
> the mothership during the day. So there's really no need to specify
> anything; I always want to keep the two fully in sync, and there's
> never any question about where I'm pulling from.
>
> I do a plain "git pull" in my clone of git.git too. I want all the
> latest updates and I'm only ever fetching them from the official git
> repo.

Ah, if you ever interact with only single remote repository, then that is certainly a valid reason not to say anything else.

And if you ever interact with only single branch of a single remote repository while on one branch, the current config scheme would let you do that on any branch.

Previous: Steven GrimmNext: Wink Saville
Message 6 of 12 in “Git branching & pulling”
  1. Wink SavilleMay 19, 2007
  2. J. Bruce FieldsMay 19, 2007
  3. Junio C HamanoMay 19, 2007
  4. Junio C HamanoMay 19, 2007
  5. Steven GrimmMay 19, 2007
  6. Junio C HamanoMay 19, 2007
  7. Wink SavilleMay 19, 2007
  8. Josef WeidendorferMay 20, 2007
  9. Wink SavilleMay 23, 2007
  10. Junio C HamanoMay 23, 2007
  11. Document branch.autosetupmerge.Paolo Bonzini, May 23, 2007
  12. Josef WeidendorferMay 23, 2007

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.