Answer the question
In order to leave comments, you need to log in
How do I git commit if Sublime Text 2 is opened to write a commit comment, and Git Bash does not register an editor open event?
1) I start Git Bush
2) I make some changes in a text file
3) I already did git add
4) I try to make a "git commit" - Sublime Text 2 opens to edit the commit comment
5) I write something there, close Sublime Text altogether
6) I switch focus to the open terminal
7) I see a message there (which I found out after the second try is printed to the terminal before I close the editor) "Aborting commit due to empty commit message."
PS : I saw how it happens with others - something like "waitng for [text editor from $PATH] ..." or something like that appears in the terminal, as far as I have seen it does not appear.
What am I doing wrong?((
Yeah, I completely forgot - I have Windows 7 64-bit ... maybe the axis itself does not make it clear to the terminal process that a text editor has opened? Well, since the terminal doesn't print any "waiting for"...
Answer the question
In order to leave comments, you need to log in
To add a short description of a commit, just type `git commit -m "short message`.
To add not only the title, but also a full description of 100500 pages to the commit, you just need to enter the `git commit` command.
Now about the problem with `sublime` + `git`
In `subl ~/.gitconfig `, modify the line calling `sublime` by adding the `-w` option to it.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question