git의 commit message를 입력할 때 사용할 editor를 변경할 수 있습니다.
에디터를 Vim으로 변경
다음과 같이 core.editor
를 vim으로 변경하면 git commit
입력 시, vim이 실행됩니다.
$ git config --global core.editor "vim"
다음과 같이 config가 올바르게 설정되었는지 확인할 수 있습니다.
$ git config --global core.editor
vim
에디터를 Sublime Text로 변경
다음과 같이 설정합니다.
$ git config --global core.editor "subl --wait"
만약 subl
처럼 실행파일의 PATH가 설정되어있지 않다면, 다음과 같이 전체 경로를 입력할 수 있습니다.
$ git config --global core.editor "'c:/program files/sublime text 3/sublime_text.exe' --wait"
에디터를 Atom으로 변경
다음과 같이 설정합니다.
git config --global core.editor "atom --wait"
만약 atom
처럼 실행파일의 PATH가 설정되어있지 않다면, Sublime text의 예제 처럼 전체 경로를 입력할 수 있습니다.
에디터를 Visual Studio Code로 변경
다음과 같이 설정합니다.
git config --global core.editor "code --wait"
만약 code
처럼 실행파일의 PATH가 설정되어있지 않다면, Sublime text의 예제 처럼 전체 경로를 입력할 수 있습니다.