개발하던 브랜치에서 develop 브랜치의 내용을 pull 하려고 하니 vi창이 열리며 아래 문구가 나타났다.
# Please enter a commit message to explain why this merge is necessary,
# especially if it merges an updated upstream into a topic branch.
#
# Lines starting with '#' will be ignored, and an empty message aborts
# the commit
주석 처리된 문구를 잘 보면 git pull을 실행할 때 자동으로 병합(merge) 이 일어나고, 그 병합 커밋의 메시지를 입력하라는 의미이다.
commit message 입력을 위해 i를 눌러 수정모드에 들어간다.
그리고 merge에 대한 message를 입력한다. 이 메세지는 원하는대로 적으면 되고, #는 주석을 의미하므로 이에 주의해야 한다. 입력하지 않아도 상관 없다.
Merge branch 'develop' of https://github.com/SWUNITZEL/fiterveiw_backend into feat/#8-ocr
# Please enter a commit message to explain why this merge is necessary,
# especially if it merges an updated upstream into a topic branch.
#
# Lines starting with '#' will be ignored, and an empty message aborts
# the commit.
Merge branch 'develop' into feat/#8-ocr
입력 후에 esc를 눌러 수정모드에서 벗어난 후에 :wq를 입력 후 엔터키를 눌러 vi창을 나간다. 그 후 git log를 확인해보면 아래와 같이 내가 입력한 커밋 메세지가 나타나는걸 볼 수 있다. 이렇게 해결 완료!

깃허브는 아무리 써도 오류가 나타나면 당황하게 되는 것 같다. 잘 정리해두면서 오류에 무덤덤하게 대응하는 날이 왔으면 좋겠다 🫠