오류
한 스터디원의 브랜치를 main 브랜치에 rebase를 하려는 상황이었다.
nagyum 브랜치에 checkout을 하여
main 브랜치로 rebase를 진행했더니
Error: The previous cherry-pick is now empty, possibly due to conflict resolution
이러한 오류 내용이 나왔다.
어떤 오류 내용인지 검색해보니, commit한 내용이 중복될 때 발생하는 문제였다.
https://github.com/fork-dev/TrackerWin/issues/1471
When cherry-picking leads to an empty commit, Fork can't continue - "cherry-pick --skip" is missing · Issue #1471 · fork-dev/T
No changeset is shown in the GUI, no button is enabled to continue (besides Abort). $ git cherry-pick --continue The previous cherry-pick is now empty, possibly due to conflict resolution. If you w...
github.com
해결 과정
파란색 박스로 표시한 부분이 중복된 commit 내용들이었다.
fork 프로그램을 통해서 rebase를 진행하면
해당 창이 뜨면서, commi한 내용을 수정하거나 삭제를 할 수 있다.
이를 통해 중복된 commit 내용들을 drop하여 제거했다.
rebase 버튼을 누르면, 로컬에 중복된 commit들이 제거된 상태로 잘 적용된 것을 확인할 수 있다.
마지막으로, 로컬에 적용된 것을 해당 remote 브랜치에 push하면 해결된 내용이 적용될 것이다.
요약
Error: The previous cherry-pick is now empty, possibly due to conflict resolution
- 오류 내용: 중복된 commit 내용이 같은 브랜치에 존재해서 발생된 오류이다.
- 해결 방법: 중복된 commit 내용을 삭제하면 된다.