error

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

chimy 2020. 4. 26. 09:35

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

 

 

rebase 도중 예기치 못한 오류로 git bash가 꺼지게 되었는데 

rebase를 취소하기 위해 --abort 옵션을 사용했을 때 발생한 오류

 

시도1.

git rebase --quit

Abort the rebase operation but HEAD is not reset back to the original branch.

The index and working tree are also left unchanged as a result.

rebase작업을 중단하지만 Head는 원래 분기로 되돌아 가지 않는 옵션

즉, 인덱스나 작업트리도 변경되지 않는다

 

--quit 옵션 사용 후 다시 --abort 옵션을 사용하니 rebase 전인 원래대로 돌아왔다