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

So, I have a repo setup on another machine. I made and clicked the files and they look great on github.com. Now I was running git initon another machine and I am trying to pull.

# git remote set-url origin git@github.com: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
+2
source share
3 answers

You need to check which credentials (username / password) you use on the machine where you succeed on GitHub, and reuse these credentials in your new local repo.

, , URL: ssh (git@github.com:me/someproj.git) https (https://github.com/me/someproj.git).
, 2FA ( ) GitHub.

URL-:

cd /path/to/new/local/repo
git remote add origin https://me@github.com/me/someproj.git
+7

https://github.com/me/someproj.git/info/refs , 403:

git. GitHub.com git over -: https://github.com/blog/809-git-dumb-http-transport-to-be-turned-off-in-90-days

git 1.6.6, SSH.

git config --global user.name git config --global user.password.

0

Bitbucket gotcha, they allow access to only one user from one machine on a free plan

0
source

Source: https://habr.com/ru/post/1673131/


All Articles