threads / discuss / 51832

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

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

## tl;dr

2 messages between Sep 12, 2019 and Sep 12, 2019.

replies: 1people: 2as markdown or json

Eugen Konkov· Sep 12, 2019, 07:12 UTC · lore
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
-- 
Best regards,
Eugen Konkov
Johannes Schindelin· Sep 12, 2019, 11:26 UTC · re: Eugen Konkov · lore

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

Hi Eugen,
On Thu, 12 Sep 2019, Eugen Konkov wrote:
> $ git --version
> git version 2.20.1
First thing to try is whether Git v2.23.0 still exposes that bug.

Ciao, Johannes

← back to recent threads