1

I cloned and pulled a repository on a branch develop from github to my local repository and when i tried to 'git push origin develop' it to my repository, it brought the error below:

remote: Permission to adex001/Fast-Food-Fast.git denied to dlaw-code. fatal: unable to access 'https://github.com/adex001/Fast-Food-Fast.git/': The requested URL returned error: 403

How do I rectify this?

Dlaw
  • 21
  • 3

1 Answers1

0

If you are not the owner or a collaborator to the repository you want to push from, you need to:

That is:

cd /path/to/local/clone
git remote rename origin upstream
git remote add origin https://github.com/<me>/myForkedRepository
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250