Just Do IT!
[Git 오류] fatal: It seems that there is already a rebase-merge directory 본문
[Git 오류] fatal: It seems that there is already a rebase-merge directory
MOON달 2023. 2. 17. 16:06git rebase 명령어를 입력하다가 잘못 눌렀는지 이러한 오류가 떴다.
브랜치가 바뀌니 것도 아니고, 다른 브랜치로 checkout도 잘 되는데 저 |rebase 오류가 뭔지 몰라서 구글링해봤다.
이건 rebase 하는 도중에 터미널을 멋대로 꺼버려서 생긴 오류였다. 뭔가 rebase 명렁어 입력해서 커밋 메세지를 수정하던 도중에 그 터미널을 나오고 강제로 vscode를 닫았다기 다시 열어서 생긴 오류였다.
저기 적인 continue, absort, skip 등 명렁어를 다 써봤는데 전부 적용되지 않고 다시 오류 메세지가 입력되길래 다시 터미널을 닫았다가 나와야 하나 싶었는데,
이럴 때는 quit 명렁어를 이용해 나오고 다시 rebase 명령어를 입력하는 게 편하다고 한다.
git rebase --quit
이 명령어를 터미널에 입력하고 나니 다시 오류가 생기지는 않았다.
stackoverflow에도 비슷한 질문이 올라와 있었다.
https://stackoverflow.com/questions/19134845/forgotten-rebase-interactive-git
Forgotten rebase interactive - git
I ran some times ago some git rebase -i command. But I completely forgot it. Now I want to change new commits order. So I ran git rebase -i HEAD~4, and I get normally It seems that there is alrea...
stackoverflow.com
'Git & Github' 카테고리의 다른 글
[Git] 이미 push한 commit 메세지 수정하기 (0) | 2023.02.17 |
---|---|
[Github] 여러 Repository 하나로 합치기 (0) | 2023.01.16 |