How to solve the requested URL returned error: 403 in git repository
Share
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I had the same issue when using the git cli and sourcetree – and doing the below solved it.
This is basically an auth issue and git had stored my creds for both bitbucket and github. All I had to do was delete those saved entries using sourcetree.
I am using SourceTree, so went to Tools -> Options -> Authentication
and under git saved passwords, I deleted them all.
This post can lead to other ways of doing the same as well.
Remove credentials from Git:
If this problem comes on a Windows machine, do the following.