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

Re: Git beginner - Need help understanding

From
Junio C Hamano <gitster@pobox.com>
Date
Dec 27, 2011, 19:50 UTC
Message-ID
<7vr4zp7q15.fsf@alter.siamese.dyndns.org>
In-Reply-To
<1324969372444-7129429.post@n2.nabble.com>
chirin <takonatto@gmail.com> writes:
Show 13 quoted lines
> From what I understand, your scenario is exactly what I expect. Which is why
> when I asked around my colleagues, no one was able to explain why I'm having
> this issue.
>
> As per your scenario:
>
>     # A changes hello.txt
>
>     # Going into B (who has not done anything to hello.txt)
>     git pull --> merge conflict on hello.txt
>
>     git commit
>     git pull --> OK

This is quite different from what Dov showed as "the right way to report". Dob's recipe begins from absolutely empty state and creates three repositories involved with exact sequence and anybody can reproduce how it is supposed to work (or break). It was written in such a way that you can try to follow the sequence to see if you see a behaviour that is different from Dob expects (in which case your machine, filesystem or the Git binary you installed might be the culprit). Have you tried it?

Compared to that, your version above does not say anything about what the state of A, B and the repository A and B interact with were in before the problem started, so even if Dob wanted to help you by trying to reproduce your situation, there is not enough information to do so.

>> In this sequence, which fulfills the scenario that you described,
>> there are no conflicts. So I suggest that you try to change the
>> command sequence to illustrate what you don't understand and ask
>> again.
Exactly.
Previous: chirinNext: chirin
Message 4 of 6 in “Git beginner - Need help understanding”
  1. chirinDec 27, 2011
  2. Dov GrobgeldDec 27, 2011
  3. chirinDec 27, 2011
  4. Junio C HamanoDec 27, 2011
  5. chirinDec 28, 2011
  6. Dov GrobgeldDec 28, 2011

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.