Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

could not open git/commit_editmsg

Tags:

git

commit

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

like image 776
liron Avatar asked Aug 27 '12 09:08

liron


1 Answers

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.

like image 140
jonplaca Avatar answered Oct 06 '22 00:10

jonplaca