Git commit error "Creation of commit message file failed"

I'm using the Community Edition of Pycharm (2016.1.2). I'm using git (2.8.1) as control version tool and I'm not able to commit any change. Git seems to work fine as I'm able to commit and push files from the Git Bash (I changed the default editor from vim to notepad by changing the core.editor variable). However, from PyCharm, I always get the same error:
 
Commit failed with error
0 files committed, 1 file failed to commit: [Commit Message]
Creation of commit message file failed
 
It seems to be with the actual creation of the commit message file (which is correctly created when commiting from Git Bash) but I haven't been able to go further. Any idea?

Please sign in to leave a comment.