본문 바로가기
VCS/Git & GitHub

[Git] git commit_editmsg 탈출(exit) 방법

by Baest 2022. 4. 2.

 

git add -i 라고 쳤더니 위와 같이 Commands 에 8개 옵션들이 나왔다. 처음에 1 누르고, 그 다음 2 누르고.. 반응이 없길래 u라고 쳤다.

그랬더니 Huh (~~)? 라며, 약간 한숨 쉬는것 같은 느낌이랄까..

 

제일 밑에 유닉스 블라블라라고 뜨길래 그걸 열어 봤더니 vscode 편집기에 해당 내용이 담긴 창이 떳다. 스크린샷을 남기지는 못했으나 찾아보니 약간 대화식으로 사용할 수 있도록 해둔 것 같았다.

 

어쨋든 해결 방법은 터미널과 같이 :wq 로 탈출 가능했다.

 

Reference는 아래 사이트

https://apple.stackexchange.com/questions/252541/how-do-i-escape-the-git-commit-window-from-os-x-terminal#:~:text=Typing%20%3Awq%20and%20pressing%20enter,%2C%20%3Aq!%20and%20enter.

 

How do I escape the git commit window from OS X terminal?

I am just learning git and the terminal and I wanted to make a test commit but I cannot seem to be able to escape the text editor window to save the commit

apple.stackexchange.com

 

 

'VCS > Git & GitHub' 카테고리의 다른 글

[Git] 다운로드 및 설치  (0) 2021.08.12