1. 문제 상황
- git pull 로 레퍼지토리에 있는 변경사항 파일들을 긁어 왔으나, 파란색 메시지가 뜬다.
# Please enter a commit message to explain why this merge is necessary,
# especially if it merges an updated upstream into a topic brach
# Lines starting with '#' will be ignored, and an empty message aborts
# the commit.
~
~
~
2. 원인 분석
- 이 병합이 필요한 이유를 설명하기 위해 커밋 메시지를 입력해달라는 것이다.
- 우리가 커밋 푸시 할때, main
에다가 직접 commit
과 push
를 해서 일어난 것이다. merge
에 대한 명령어를 입력해주면 해결된다.
3. 해결 방법
1. i 를 눌러서 커밋 메시지를 넣는다.
2. ESC 를 눌러준다.
3. :wq
를 입력한다.
- Vim 에디터 용어로
- w
는 Write 저장
- q
는 quit 종료를 뜻한다.
- 즉 Git이 자동으로 Vim 을 열어 merge commit
메시지를 입력하라고 하는데,
- 그때 :wq
를 입력하면 기본 메시지를 저장하고 편집기를 닫아주는 역할을 한다 !
3. 해결 화면
- pull
이 정상적으로 작동하는 걸 볼 수 있다 : >
'Troubleshooting' 카테고리의 다른 글
[Javascript] 동적 삽입된 버튼 작동 오류 (0) | 2025.02.14 |
---|---|
[openweathermap] api 연동 오류 401 (1) | 2025.02.14 |
[Git push Error] git pull (0) | 2025.02.14 |
[Modal Error] aria-hidden / 접근성(Accessibility) 관련 경고 (0) | 2025.02.10 |
[Firebase] 보안문제 (0) | 2025.02.07 |