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

Enhancement: `git pull` fails with merge conflict even if the local copy is modified in the same manner

From
XWXuancong Wang <xuancong84@gmail.com>
Date
Feb 16, 2024, 08:43 UTC
Message-ID
<CA+prNOo56SkNohZ6qgh1TLsDxGr-OTbeP0FhzrJK80Hr4SzKyA@mail.gmail.com>
Dear Git developers,
I would like to report a bug or defect in git.

I am in charge of running a real-life study. Very often, I copy the source files to the working folder and test running the pipeline to make sure that it does not crash. At the same time, I push my code to my branch and create a merge request. After my branch gets merged to the master branch (which takes some time), I run `git pull -f` in the working folder (which always contains the latest version of my code manually copied in). This pull operation will fail with conflict because the source file gets modified both locally and in the updated repository, even though the final file content is the same.

So my suggestion is that would you make Git a bit smarter so that if the same file gets modified in the same way both locally and remotely, would you allow the pull operation to pass? Thanks!

Best regards, Xuancong

Message 1 of 1 in “Enhancement: `git pull` fails with merge conflict even if the local copy is modified in the same manner”
  1. Xuancong WangFeb 16, 2024

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.