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

git merge questions

From
Don Zickus <dzickus@gmail.com>
Date
Dec 16, 2005, 20:05 UTC
Message-ID
<68948ca0512161205x3d5921bfm3bfcaa64f988eb99@mail.gmail.com>

I now have a git merge question. I decided to try merging branches and was left with a situation in which the file was moved on the master branch and updated on my branch. Not sure how to properly integrate the changes from my branch.

For example: %git checkout -b test v2.6.14 %<manually apply all the 2.6.14.z stable patches> %<commit those patches> %git checkout -b test2 v2.6.15-rc4 %git pull . test

Now over the course of 2.6.15 the arch/ppc64 was renamed to arch/powerpc. Fine. The merge algorithms handled all the unchanged files properly. However arch/ppc64/Kconfig was modified and the merging was left unresolved. In fact there is no file no merge against (because it moved). So 'git-ls-files -u' only shows stage 1+3 (no stage 2, of course).

How do I merge those changes? I don't know enough about all the git commands to figure this out, especially how to take advantage of the stage 1, 2, and 3 files.

Thanks for any help, Don

Next: Junio C Hamano
Message 1 of 9 in “git merge questions”
  1. Don ZickusDec 16, 2005
  2. Junio C HamanoDec 16, 2005
  3. Don ZickusDec 16, 2005
  4. Junio C HamanoDec 16, 2005
  5. Don ZickusDec 16, 2005
  6. Junio C HamanoDec 16, 2005
  7. Johannes SchindelinDec 16, 2005
  8. Junio C HamanoDec 17, 2005
  9. Junio C HamanoDec 17, 2005

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.