Two years ago, I downloaded git and logged into my git account on my friend's laptop to do homework.
Fast forward to today, and he's now a computer science major. He tried pushing to his friend's repository, but he's getting an error:
remote: Permission to <repo> denied to <my username>.
fatal: unable to access <repo URL>: The requested URL returned error: 403.
See, it's denying access because my account doesn't have access. So I tried using
git config --global user.name
to change it, but it still returns the exact same error. I even tried deleting all of the SSH keys. Nothing changed.
So why does git still think I'm logged in on his computer? And how do I fix it? I feel really bad, because he may never be able to use git properly, unless he wants to add my account to every project he ever works on.
Thanks!