我在使用HTTPS克隆私有GitHub仓库时遇到了问题。如果我尝试使用以下命令来克隆我的仓库:
git clone https://github.com/{username}/{repository}
i get the error:
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进行克隆操作可以正常工作。通过https进行克隆公共存储库也是可行的。有没有人知道我该怎么做? 我使用的是Windows 10和Git for Windows版本2.14.13。
git config -l
来检查。为什么错误消息中会出现“端口 9418”? - Ortomala Lokni