我在通过 HTTPS 克隆私有(private) GitHub 存储库时遇到问题。如果我尝试使用以下方法克隆我的存储库:
git clone https://github.com/{username}/{repository}
我得到错误:
fatal: remote error: Repository not found
当我尝试在这样的请求中输入我的凭据时:
git clone https://{username}@github.com/{username}/{repository}
我得到错误:
fatal: Unable to look up {username}@github.com (port 9418)
无需通过 ssh 进行克隆。克隆公共(public)存储库也适用于 https。有人知道我能做什么吗? 我正在使用 windows 10 和 git for windows version 2.14.13
最佳答案
您可以使用以下方法克隆您的存储库:
git clone https://username@github.com/username/repo_name
它还可以帮助检查您的 git 配置:
git config -l
关于git - 无法通过 HTTPS 克隆私有(private) Github 存储库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46999328/