tools/git
git commit시 vi 에러: there was a problem with the editor 'vi'. git
seul chan
2017. 3. 18. 01:28
git에서 commit을 할 때 커밋이 제대로 되지 않고
there was a problem with the editor 'vi'. git
라는 빔 에디터 에러가 나왔다.
검색 해보니 vi 에디터의 버그라고 하고
git config 파일에 vi 에디터를 직접 추가하면 해결된다고 한다.
(git에서는 크게 시스템, 사용자, 프로젝트별 총 3개의 config 파일이 있다고 하는데 global 옵션으로 추가하였다.)
$git config --global core.editor 'vim'
이제 vim이 에디터로 등록되어있고, 다시 커밋이 잘 되는 것을 확인할 수 있다.
참고: https://medium.com/@cookatrice/git-commit-amend-%EC%82%AC%EC%9A%A9%EC%8B%9C-vi-error%EA%B0%80-%EB%B0%9C%EC%83%9D%EB%90%9C%EB%8B%A4%EB%A9%B4-d6b96a184d24#.g1ig6smfm