So, I have a repo setup, on another machine. I've committed and pushed files and they view fine on github.com. Now, I have ran git init
on another machine and I'm trying to pull.
# git remote set-url origin [email protected]:me/someproj.git
fatal: No such remote 'origin'
# git remote add origin https://github.com/me/someproj.git
# git pull
error: The requested URL returned error: 403 Forbidden while accessing https://github.com/me/someproj.git/info/refs
fatal: HTTP request failed
# git remote -v
origin https://github.com/me/someproj.git (fetch)
origin https://github.com/me/someproj.git (push)
# git pull origin
error: The requested URL returned error: 403 Forbidden while accessing https://github.com/me/someproj.git/info/refs
fatal: HTTP request failed
The first is relatively simple to resolve and simply involves checking to ensure your GitHub password is correct. If the error persists, it is likely that you have to use a different HTTPS address in your Git client. For this error, you will not even be prompted to enter a password, making it simpler to diagnose.
The HTTP 403 Forbidden response status code indicates that the server understands the request but refuses to authorize it.
If you use two account in same computer it will throw this error.
In windows 10 Control Panel -> User Accounts -> Manage your credentials. Remove the github account.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With