[Git] 오류 해결 Please enter the commit message for your changes. Lines starting

Sunow·2023년 10월 26일
0

Git

목록 보기
1/2
post-thumbnail



🚨 오류 발생

# Please enter the commit message for your changes. Lines starting
# with '#' will be ignored, and an empty message aborts the commit.
#
# On branch master
# Your branch is up to date with 'origin/master'.                                                              ception
#
# Changes to be committed:
#       new file:   css/start.html
#
.git/COMMIT_EDITMSG[+] [unix]  

아무런 옵션 없이 git commit 명령만 실행하였더니 다음과 같이 편집기가 실행되었다.
이 상황에서는 아무것도 적히지 않고 q를 눌러도 빠져나갈 수 없다.



✅ 해결 방법

  1. i키 누르기 (Insert 모드로 변경되어 입력가능하게 됨)
  2. merge 메시지 입력
  3. esc키 누르기 (Insert 모드 해제)
  4. :wq 입력
  5. enter키 누르기





출처 : https://stackoverflow.com/questions/19085807/please-enter-a-commit-message-to-explain-why-this-merge-is-necessary-especially

0개의 댓글