could not open git/commit_editmsg

前端 未结 6 1808
自闭症患者
自闭症患者 2021-01-12 17:43

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

6条回答
  •  猫巷女王i
    2021-01-12 18:21

    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 (sudo chown youruser -R yourrepodir/)
    • changing the permissions for the particular files using chmod (you should avoid using 0777 as it is not secure)

提交回复
热议问题