error: There was a problem with editor “git-editor.sh” supply the message

Total
0
Shares

Git throws Error: Bad status code: 500; error: There was a problem with the editor “git-editor.sh” Please supply the message using either -m or -F option, when you forget to provide message in your commit.

Solution

You need to provide message in your commits –

git commit -m "your message"

If you are using visual studio code, then provide message from commit box –

message box for commit in visual studio code

If you won’t provide any message in the box, then a full screen message file will open –

COMMIT_EDITMSG file to add commit message

You need to add the message at the top (line 1st).