In my message for commit, I'm trying to use the guidelines:
1º Line - summary with <80char
2º Line - space
3º Line - The body message start here
In console, I'm doing this:
git commit
then the editor opens and i write my message that i want to following the guidelines I save and then close the editor.
i return the console and it give me the error:
error: There was a problem with the editor '"C:/Program Files (x86)/GitExtensions/GitExtensions.exe" fileeditor'.
Please supply the message using either -m or -F option.
From what you are saying i can assume that you are using git extension on windows, i think that your issue is related to a bad configuration, configure the default text editor in the configuration pane of git extension .
Otherwise you can commit without having the editor prompted each time in this way :
git commit -m "Your commit message"
If you want to have a multiline message you can break the line with a backslash :
git commit -m "1º Line - summary with <80char \
2º Line - space \
3º Line - The body message start here"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With