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

Re: basic question about push

From
Junio C Hamano <gitster@pobox.com>
Date
Jan 24, 2010, 19:08 UTC
Message-ID
<7vzl43723t.fsf@alter.siamese.dyndns.org>
In-Reply-To
<20100124081513.GA10700@coredump.intra.peff.net>
Jeff King <peff@peff.net> writes:
Show 12 quoted lines
> On Sun, Jan 24, 2010 at 07:04:59AM +0000, Russ Paielli wrote:
>
>> warning: updating the current branch         
>> [...]
>> What does this mean in English? And what is the correct way to transfer my
>> revisions from my home computer to my work computer? Thanks.
>
> It means your workflow will cause problems as the pusher magically
> changes your repository's concept of "the latest commit" behind the
> pushee's back. The workflow you want is described here:
>
>   http://git.wiki.kernel.org/index.php/GitFaq#push-is-reverse-of-fetch

I saw somebody referred to this entry and refused to study the entry immediately after seeing the word "firewalled", saying "my environment is not firewalled", without trying to judge if the description applies to his case. This was understandable; the workflow will apply in non-firewalled case just as well, even though "firewalled" case may be the easiest to see why it is recommended.

Perhaps the title of the entry needs to be rewritten to clarify that this is not _limited_ to a firewalled situation?

Previous: Jeff KingNext: Jeff King
Message 3 of 6 in “basic question about push”
  1. Russ PaielliJan 24, 2010
  2. Jeff KingJan 24, 2010
  3. Junio C HamanoJan 24, 2010
  4. Jeff KingJan 25, 2010
  5. Jay SoffianJan 24, 2010
  6. Jeff KingJan 25, 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.