请帮帮我,我正试着在我的终端上运行这个:
asgard@asgard-A7N8X2-0:~/CollegePortal$ git pull
error: cannot open .git/FETCH_HEAD: Permission denied那我试试这个
asgard@asgard-A7N8X2-0:~/CollegePortal$ sudo git pull
Permission denied (publickey).
fatal: The remote end hung up unexpectedly帮帮我,我不明白这个问题。
发布于 2016-01-11 14:17:32
使用(首先转到.git的父目录) ll .git查看.git目录的所有者和组,查看目录的组和所有者,使用sudo usermod -a -G yourusername  groupsofonwner将您的用户添加到所有者的组,然后注销=>登录,一切正常。
所以在夏天
.git目录的组所有者$ll .git
ownergroupofgit
https://stackoverflow.com/questions/13195814
复制相似问题