Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

The requested URL returned error: 403 Forbidden while accessing github.com

Tags:

git

github

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
like image 219
User Avatar asked Jun 23 '16 03:06

User


People also ask

How do I fix the requested URL returned error 403 in git repository?

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.

What does request failed forbidden 403 mean?

The HTTP 403 Forbidden response status code indicates that the server understands the request but refuses to authorize it.


1 Answers

If you use two account in same computer it will throw this error.

enter image description here

In windows 10 Control Panel -> User Accounts -> Manage your credentials. Remove the github account.

like image 118
Ahmad Sharif Avatar answered Oct 24 '22 17:10

Ahmad Sharif