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

cat: .git/rebase-merge/head-name: No such file or directory

From
Erik Faye-Lund <kusmabite@googlemail.com>
Date
Feb 2, 2010, 19:20 UTC
Message-ID
<40aa078e1002021120u1a692301q1c4f6a952d4df5a3@mail.gmail.com>

I just applied an interactive rebase to one of my repos, and got a pretty confusing error message:

$ git rebase -i HEAD~4 <edit, rebasing ticked forward to the end> rm: cannot unlink `/c/Users/kusma/Documents/My Dropbox/src/gb-asm/.git/rebase-merge/done': Permission denied rm: cannot remove directory `/c/Users/kusma/Documents/My Dropbox/src/gb-asm/.git/rebase-merge': Directory not empty cat: .git/rebase-merge/head-name: No such file or directory $ git diff cat: .git/rebase-merge/head-name: No such file or directory $ git status # On branch asm-test nothing to commit (working directory clean) cat: .git/rebase-merge/head-name: No such file or directory $

Now, I figure that rm failed due to my virus scanner kicking in, so that's no mystery. And there is a commit in msys AFAIK that makes unlink retry on failures. So I expect the issue to go away in future versions. However, I'm not entirely sure what to do to repair my repo, though.

Any ideas?
-- 
Erik "kusma" Faye-Lund
Next: Erik Faye-Lund
Message 1 of 2 in “cat: .git/rebase-merge/head-name: No such file or directory”
  1. Erik Faye-LundFeb 2, 2010
  2. Erik Faye-LundFeb 2, 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.