could not open git/commit_editmsg
问题 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 回答1: This is an file permission issue, user you are currently logged on does not have permissions to use the files. If that's your repo, you may try: switching to other user who owns the repo changing the owner of the repo