【发布时间】:2019-08-09 10:51:23
【问题描述】:
我正在尝试将一些代码推送到 GitHub 的存储库中,但是在按照 PyCharm 的文档设置 Remotes、将目录设置为存储库并将 ssh 可执行文件 设置为 “内置”(在版本控制设置上),我收到以下错误:
dnb_api: ssh: Could not resolve hostname github.com: Name or service not known Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.
奇怪的是:repo 确实存在,并且连接的链接是 SSH 形式:“git@github.com:user/repo.git”
请务必注意,我使用的是公司代理,但所有代理设置均已正确配置(因为我可以安装软件包并连接外部 API)。 就连
'git config --global http.proxy <username>:<password>@proxy:port'
和
'git config --global https.proxy <username>:<password>@proxy:port'
在命令行中正确配置的位置。
你知道如何解决这个问题吗?
【问题讨论】:
标签: git github pycharm git-push