There was a problem with the editor ‘vi’
submitted the code through
git commit-m 'modify message'
in the project. It was found that the modify message
submitted was not accurate, so I wanted to modify it. Use the git commit -amend
command to modify modify message
. After editing the message
in vim
, the w+q
exits with an error and the 0 message
1 fails to save, 2The error message is:
error: There was a problem with the editor 'vi'.
Please supply the message using either -m or -F option.
Solutions:
git config --global core.editor /usr/bin/vim
Amend git commit --amend
is OK this time.
Reference:
http://tooky.co.uk/there-was-a-problem-with-the-editor-vi-git-on-mac-os-x/
Read More:
- This dependency was not found:* vue-editor-bridge
- Eclipse: unable to open editor: no ID org.eclipse.jdt . ui.CompilationUnitEditor Editor descriptor for
- Python’s importerror: DLL load failed: the specified module was not found and the problem was solved
- There is a problem of DLL when executing G + + compile command in sublime text editor
- After vivado joined ILA, the [DRC lutlp-1] problem of error problem was solved
- An error was reported when idea compiles Java: no symbol was found_ How to solve this problem
- There was a problem sending the command to the program in Excel 2010
- Java was started but returned exit code = 13 problem solving
- Win10 problem solving – there was a temporary DNS error. Try refreshing the page
- Idea stuck and error reported: UI was frozen for xxxxx MS problem solving
- Cannot find module ‘vs/editor/contrib/inlineHints/inlineHintsController‘
- Open the Cocos creator editor and report an error property UUID of null
- Successfully solved the problem that visual studio code could not go to the definition, and there was no mouse prompt
- Ntpdate reported an error when updating the clock, and the problem of no server suitable for synchronization found was solved
- When writing teacher Wu Enda’s machine learning class, there was a problem with the result of using scipy.optimize.fmin_cg
- Eclipse software Java solution: editor does not contain a main type error box
- Error building player because scripts have compile errors in the editor
- Git prompts another git process sees to be running in this repository, e.g. an editor opened by
- The spring boot project was first created, pom.xml The error is Maven configuration problem. How to solve it?
- Error of replacing VIM editor: s in Linux: pattern not found