grav-plugin-git-sync: The requested URL returned error: 403 Forbidden
When I finish step 3 of the wizard, this error shows up:
error: The requested URL returned error: 403 Forbidden while accessing https://sunnytranco:{password}@github.com/sunnytranco/gravLearn2.git/info/refs fatal: HTTP request failed
I’ve already tested my connection, it’s fine
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Reactions: 3
- Comments: 78 (7 by maintainers)
Commits related to this issue
- Added kown issues and resolution in readme (#39) — committed to trilbymedia/grav-plugin-git-sync by w00fz 4 years ago
The error may be, the computer has saved a git username and password so if you shift to another account the error 403 will appear. Below is the solution For Windows you can find the keys here:
control panel > user accounts > credential manager > Windows credentials > Generic credentials
Next, remove the Github keys.
In mac 1-In Finder, search for the Keychain Access app. 2In Keychain Access, search for github.com. 3-Find the “internet password” entry for github.com. 4-Edit or delete the entry accordingly.
Hi People,
ILLYAS-DEULECT has already given us the answer. I was facing the same problem mentioned by rajunerugatti123, w00fz, Amina-Zafar . I followed the steps below and was able to resolve the issue
The error may be, the computer has saved a git username and password so if you shift to another account the error 403 will appear. Below is the solution For Windows you can find the keys here:
control panel > user accounts > credential manager > Windows credentials > Generic credentials
Next, remove the Github keys.
In mac 1-In Finder, search for the Keychain Access app. 2In Keychain Access, search for github.com. 3-Find the “internet password” entry for github.com. 4-Edit or delete the entry accordingly.
Make sure the password is actually correct, I know it sounds like a stupid advice but I did have this issue myself before 😃. Also, if you are using 2FA with GitHub, you cannot use the actual password from remote, you need to create an Access Token and use that instead of your password.
Did you follow these steps https://www.youtube.com/watch?v=avcGP0FAzB8 (interface slightly different now)? Are you getting any error messages?
That error means you are using wrong credential or wrong repo:
https://github.com/<user>/<repo>.git403 means GitHub is not granting you access so one or more of the 3 things above are the problem
Problems:- remote: Permission to UserName/repo.git denied to AnotherUserName. fatal: unable to access ‘https://github.com/UserName/repo.git/’: The requested URL returned error: 403
Solutions You can solve this problem by using lots of methods. But below simple method is written which helps you to solve these issues.
step 1: go to control panel step-2: then go to user accounts step 3: After that go to credential manager step 4: then Windows credentials step 5: go to Generic credentials step 6: finally delete the Github keys.
After done above all the steps then use the push command ->git push -u origin master
After that, you would see a GitHub login form windows will appear. Then you need to log in with your GitHub email and password. After login, you can use push command it will 110% work.
Did you manage to fix this error, Facing the same thing
fatal: unable to access ‘https://github.com/habibakij/Testing.git/’: The requested URL returned error: 403 i face this problem… username habibakij
how can I create an access token
$ git push origin master remote: Permission to rajunerugatti123/secondrepo.git denied to nerugattiraju1234. fatal: unable to access ‘https://github.com/rajunerugatti123/secondrepo.git/’: The requested URL returned error: 403 i will get this type of error. how it can solve
Hi @Amina-Zafar , it depends on the Git-based service you are using. For example, with GitHub you could create a token at
https://github.com/settings/tokensTx “kiranashav”
Solution for this problem is : control panel > user accounts > credential manager > Windows credentials > Generic credentials
Next, remove the Github keys.
In mac 1-In Finder, search for the Keychain Access app. 2In Keychain Access, search for github.com. 3-Find the “internet password” entry for github.com. 4-Edit or delete the entry accordingly.
Hello, I personnally solved this problem by doing the following on the command line git remote set-url origin https://yourusername@github.com/user/repo.git Best,
thanks this works -
control panel > user accounts > credential manager > Windows credentials > Generic credentials
Next, remove the Github keys.
I have viewed this video but this is not my problem solution. Actually, my repo is public and my colleague repo is also public. The problem is, I am unable to push my code into my account repo this is the main problem that I am facing. Please help me.
what about on Linux… every solution i see is mac or windows what about linux
I had the same issue and the solution provided by ILLYAS-DEULECT worked.
Thank you ILLYAS-DEULECT
help me fix this err: remote: Permission to lqcuong021099/dog-cat-mouse.git denied to quoccuong021099. fatal: unable to access ‘https://github.com/lqcuong021099/dog-cat-mouse.git/’: The requested URL returned error: 403
Please correct the path for windows:
Correct: Control panel > Credential manager > Windows credentials > Generic credentials
Thank you. Its working fine. Its really helpful. Great
For those whose problem is not solved in this way… I strongly recommend to check that you have the permission to push to the repo. To make sure, ask the repo’s admin to give you the WRITE permission in the ‘Manage Access’ section of the repo’s settings. Hope this works for you.
how to resolve this issue in linux
THANK YOU MUCH. I’M WORKING ON A COLLEGE COMPUTER AND COULDN’T GET ANYTHING TO WORK, WINDOWS KEEPING CREDENTIALS… fuuuuuuu
Hi Thank You a lot. I was confusing with this issue for more than 3 days. after reading your comment I solved my problem. Thank you a lot again
Thanks a lot. It worked/
Also check your company VPN/Proxy
Can anyone please help me ASAP, with below-mentioned error on cmd terminal of vscode while the last step(git push -u origin master) to push my project.
D:\ReactJS Projects\resort>git push -u origin master remote: Permission to kirtanwadekar/react-beach-resort-recording.git denied to kabir19. fatal: unable to access ‘https://github.com/kirtanwadekar/react-beach-resort-recording.git/’: The requested URL returned error: 403
D:\ReactJS Projects\resort>
unable to push my code into my current account, getting access denied 403 error. I have tried many options making new repos, by changing drive, even created repo on Bitbucket but still, my repo is associated with my colleague GitHub account. Please guide me how can I resolve this issue?