본문 바로가기

Git

[Git] There was a problem with the editor 'vi'. 오류 해결

평소처럼 깃 add. 를 하고 commit을 진행하느데 이러한 에러가 발생했다.

git status를 확인해보니 수정이되어있다고 확인(빨간색)되지않고 초록색으로 나와있다.

그리고 push를 해보니 모든게 업데이트 되있다고 나와 당혹스럽다

그래서 바로 구글에 검색해보았다.

hint: Waiting for your editor to close the file... error: There was a problem with the editor 'vi'. Please supply the message using either -m or -F option.

https://github.com/VundleVim/Vundle.vim/issues/167

 

Git Commit Problem: "error: There was a problem with the editor 'vi'" · Issue #167 · VundleVim/Vundle.vim

I'm just starting to use Vundle and I'm running into an error when editing a Git message using the .vimrc setup from the README. When I try to save any git message in vim, I get the followi...

github.com

우선 이글에 댓글을 비면 엄청난 공감과 좋아요를 얻은 댓글을 볼 수 있을것이다.

git config --global core.editor /usr/bin/vim solved it for me.

위 git 메세지를 구글에 다시 검색해보니 git commit이 제대로 되지않아 에러를 겪는분들의 글을 볼 수 있었다.

https://seulcode.tistory.com/142

 

git commit시 vi 에러: there was a problem with the editor 'vi'. git

git에서 commit을 할 때 커밋이 제대로 되지 않고 there was a problem with the editor 'vi'. git 라는 빔 에디터 에러가 나왔다. 검색 해보니 vi 에디터의 버그라고 하고 git config 파일에 vi 에디터를 직접 추..

seulcode.tistory.com

확인해보니 vi에디터의 버그라고 하고 git config파일에 vi에디터를 직접 추가하면 해결된다고 한다. git에서는 크게 시스템, 사용자, 프로젝트별 총 3개의 config파일이 있다고 하는데 global옵션으로 추가? 하였다.

이후에 다시 커밋을 진행하니 잘되는걸 확인할 수 있다.