Git commit error "Aborting due to empty commit message"

I am having difficulties in committing changes using Git. I am using RubyMine 1.1 on OS X 10.5.7.

From the menu I choose Version Control | Commit Changes. I see a list of the changed files. In the Comment field I enter a comment. When I click Commit I see the following dialog:

"Commit failed with errors"

The commit changes message is: "Error: Aborting commit due to empty message."

What do I need to do to be able to commit? When I do the commit on the command like "git commit -m "My commit message"", it works.

Any help would be appreciated.

Cheers.

0

The git does not allows commit without message specified. Have you specified the commit message in commit dialog?

Note that the lines starting with # are treated as comment by Git and are not considered as comments and ignored by Git.

1

Hi Constantine,

Thanks for the reply. You are correct, that was the problem. When I placed the "#something" anywhere but the first part of the comment, the commit worked perfectly.

Cheers!

0

https://youtrack.jetbrains.com/issue/IDEA-266619 
'mv /Users/dima/.stCommitMsg /Users/dima/.old_stCommitMsg' fixed my issue.

0

请先登录再写评论。