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

rebase --continue confusion

From
DRDale Rowley <ddrowley@gmail.com>
Date
May 30, 2010, 00:59 UTC
Message-ID
<4C01B855.7080409@gmail.com>

I ran into a conflict while running 'git rebase branch1 branch2'. So I edited the file and resolved the conflicts, and then ran 'git add <file>; git rebase --continue'. This printed out a message 'No changes - did you forget to use git add?'. I thought 'No, I'm pretty sure I ran git add' and I assumed I had run into a bug in git because I didn't see how this conflict was different than any others I had successfully resolved. The next time this problem came up, the light finally came on and I realized that I should just run 'git rebase --skip' because when I resolved the conflicts, I had basically undone all changes that the patch would introduce.

OK, so there isn't a bug in git, but since then I've seen co-workers stumped by this same problem. So maybe it would help to clarify the message? Maybe something like "The index is in the same state as it was before the patch was applied - refusing to make an empty commit. Did you forget to use 'git add'? Or maybe you should use 'git rebase --skip'?"

Dale
Next: Tim Visher
Message 1 of 12 in “rebase --continue confusion”
  1. Dale RowleyMay 30, 2010
  2. Tim VisherMay 30, 2010
  3. skillzero@gmail.comMay 31, 2010
  4. Eli BarzilayJun 6, 2010
  5. Jeff KingJun 6, 2010
  6. Eli BarzilayJun 6, 2010
  7. Jeff KingJun 6, 2010
  8. Eli BarzilayJun 6, 2010
  9. Jeff KingJun 7, 2010
  10. Junio C HamanoMay 31, 2010
  11. Ramkumar RamachandraMay 31, 2010
  12. Jan KrügerMay 31, 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.