Skip to contentSkip to conversation

error: could not read '.git/rebase-apply/head-name': No such file or directory

DISCUSSION Eugen Konkov 2 participants 2 messages Sep 12, 2019

lore
Share & tools
lore
#0 lore raw

Hello Git,

Next commands cause the error:

$ git pull
fatal: It seems that there is already a rebase-apply directory, and
I wonder if you are in the middle of another rebase.  If that is the
case, please try
        git rebase (--continue | --abort | --skip)
If that is not the case, please
        rm -fr ".git/rebase-apply"
and run me again.  I am stopping in case you still have something
valuable there.
$ git rebase --abort 
error: could not read '.git/rebase-apply/head-name': No such file or directory
$ git --version
git version 2.20.1
$ rm -fr ".git/rebase-apply"
$ git rebase --abort 
error: could not read '.git/rebase-apply/head-name': No such file or directory
$ git pull
fatal: It seems that there is already a rebase-apply directory, and
I wonder if you are in the middle of another rebase.  If that is the
case, please try
        git rebase (--continue | --abort | --skip)
If that is not the case, please
        rm -fr ".git/rebase-apply"
and run me again.  I am stopping in case you still have something
valuable there.

I resolved this issue by
git checkout -f some_br

But this issues should not occur

Signature · 2 lines
Best regards,
Eugen Konkov
#1 lore raw

Hi Eugen,

Quoted 2 lines · Eugen Konkov
$ git --version
git version 2.20.1

First thing to try is whether Git v2.23.0 still exposes that bug.

Ciao,
Johannes