Skip to content

Instantly share code, notes, and snippets.

@jamesmoriarty
Created July 3, 2012 00:08
Show Gist options
  • Save jamesmoriarty/3036539 to your computer and use it in GitHub Desktop.
Save jamesmoriarty/3036539 to your computer and use it in GitHub Desktop.
There was a problem with the editor 'vi'.
$ git commit
error: There was a problem with the editor 'vi'.
Please supply the message using either -m or -F option.
$ echo $?
1
$ git config --global core.editor /usr/bin/vim
$ git commit
[feature/tag-search 0167ee2] Merge branch 'master' of github.com:jamesmoriarty/project-x into feature/tag-search
$ echo $?
0
@kriogenx0
Copy link

well done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment