Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Problems with Editor when i do git commit

Tags:

git

windows

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.
like image 934
saramgsilva Avatar asked Aug 15 '12 12:08

saramgsilva


1 Answers

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"
like image 50
aleroot Avatar answered Oct 20 '22 08:10

aleroot