could not open git/commit_editmsg
commit, git
Solution
Assuming you're on a Windows machine, the chances are that you modified a hidden file and no longer have write permissions to the hidden file.
To solve this, simply navigate to your .git folder and delete the "COMMIT_EDITMSG" file.
Problem
I have a git repository linked to a dropbox folder. Recently, I have switched my laptop to another, and now i can not perform the function "git commit -am". I keep getting this error message: "could not open '.git/COMMIT_EDITMSG': Permission denied. Any ideas? Thanks, Liron