Help me please, I am trying to run this in my terminal:
asgard@asgard-A7N8X2-0:~/CollegePortal$ git pull
error: cannot open .git/FETCH_HEAD: Permission denied
Then I try this one
asgard@asgard-A7N8X2-0:~/CollegePortal$ sudo git pull
Permission denied (publickey).
fatal: The remote end hung up unexpectedly
Help me, I don't understand this problem.
sudo
doesn't help here at all since it needs access to you ssh keys (not root's).