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](https://i0.wp.com/authors.akashmittal.com/wp-content/uploads/2022/08/image-17.png?resize=820%2C730&ssl=1)
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](https://i0.wp.com/authors.akashmittal.com/wp-content/uploads/2022/08/image-18.png?resize=820%2C435&ssl=1)
You need to add the message at the top (line 1st).