I forked a GitHub repository from my friend’s account, but when I try to push my commits, I get this error:
remote: Permission to Fatima-Ennouari/test.git denied to Ridafadli. fatal: unable to access 'https://github.com/Fatima-Ennouari/test.git/': The requested URL returned error: 403
Here’s what I did:
I forked the repo from Fatima-Ennouari/test.
I cloned my fork locally:
git clone https://github.com/Ridafadli/test.git
I made some changes and committed them.
Then I ran:
git push origin main
But got the 403 error above.
I’m logged into my GitHub account (myname), and I can see my fork on my profile.