[Git] Please enter a commit message to explain why this merge is necessary, especially if it merges an updated upstream into a topic branch

2022. 1. 16. 14:50·레거시모음/오류해결

 

 

Git bash를 통해서 merge를 진행하거나 pull 명령어를 사용하면

# 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

라고 적힌 까만 창이 뜨는데 아무것도 적히지도 않고

esc나 q를 눌러도 나가지지 않아서 굉장히 당황스러울 것이다.

키보드를 막누르다가 잘못 건드려서 로컬저장소에 문제가 생기면 어쩌나 하는 생각도 들 것이다.

이럴 때 간단히 빠져나갈 수 있는 방법이 있다.

 

 

 

 

  해결하기!  


1.  i  를 누른다  ==>  i 를 누르면  Insert 모드로 바뀌어서 merge message를 입력할 수 있다.

 

2. merge 메세지를 입력한다.

 

3.  esc  키를 누른다.  ==>  Insert 모드를 취소

 

4.  :wq  를 입력한다.

 

5.  enter  키를 누르면 끝!!

'레거시모음/오류해결' 카테고리의 다른 글
  • [오류해결] org.hibernate.hql.internal.ast.QuerySyntaxException
  • [오류해결]Server Tomcat v9.0 Server at localhost failed to start
  • [오류해결] The import javax.servlet cannot be resolved
  • git push 오류가 생길 때 (부제: error: failed to push some refs to)
gakko
gakko
좌충우돌 개발기
  • gakko
    MYVELOP 마이벨롭
    gakko
  • 전체
    오늘
    어제
    • 분류 전체보기 (208) N
      • 끄적끄적 (6)
      • Spring (18)
      • Java (3) N
      • Redis (1)
      • Test (3)
      • 대외활동 (36)
        • 부스트캠프 (23)
        • IT커뮤니티 (5)
        • 글또 (5)
        • 컨퍼런스 (3)
      • Infra (5)
        • Docker (1)
        • Jenkins (1)
        • AWS (1)
      • CS (26)
        • 자료구조 (13)
        • 운영체제 OS (12)
        • 데이터베이스 (1)
      • MySQL (7)
      • Git & GitHub (16)
        • Git (12)
        • Github Actions (1)
        • 기타(마크다운 등) (3)
      • 프로젝트 (2)
      • 리눅스 (6)
        • 기초 (6)
        • 리눅스 서버 구축하기 (0)
      • 후기 (3)
        • Udemy 리뷰 (3)
      • Python (12)
      • 레거시모음 (64)
        • 스프링 (11)
        • 자바 클래스&메소드 (1)
        • 오류해결 (18)
        • JSP & Servlet (12)
        • 자바스크립트 기초 (3)
        • React (2)
        • 이클립스 (1)
        • 알고리즘 문제풀이 (16)
      • 디자인패턴 (0)
  • 블로그 메뉴

    • 홈
    • 태그
    • 방명록
  • 링크

    • 우진님
  • 공지사항

  • 인기 글

  • 태그

    스프링
    MySQL
    자바
    웹개발
    os
    부스트캠프
    오류해결
    부스트캠프 7기
    알고리즘
    Git
    jsp
    GitHub
    파이썬
    Spring
    운영체제
    부스트캠프 멤버십
    스프링부트
    자바스크립트
    java
    Python
  • 최근 댓글

  • hELLO· Designed By정상우.v4.10.0
gakko
[Git] Please enter a commit message to explain why this merge is necessary, especially if it merges an updated upstream into a topic branch
상단으로

티스토리툴바