rap*_*ael 11 proxy github-for-windows github-desktop
在Windows中使用git的新手.我下载了GitHub桌面应用程序并且可以连接我的帐户,但由于主机未解析而导致推送/拉取失败.在工作场所问我,我得到以下建议,在git shell中键入此命令.
git config --global http.proxy http://username:password@proxy.workplace.com:8080
Run Code Online (Sandbox Code Playgroud)
做这个:
不是GitHub for Desktop生成并使用SSH密钥(我第一次连接帐户时收到了电子邮件通知)?如何配置GitHub Desktop以使用此代理?
Say*_*dal 21
要在不使用git shell的情况下直接向Github Desktop添加代理:
在Github Desktop中设置/登录您的帐户(这不会有问题,代理只允许您添加,创建或克隆回购)
暂时关闭Github Desktop(设置代理).
去吧C:\Users\@yourusername.
在那里你会找到一个名为.gitconfig的文件
用任何文本编辑器打开它(我使用了崇高文本3)并添加
[http]
proxy = http://username:password@your.proxy.address:8080
并保存.
rap*_*ael 14
所以实际上解决方案是在git shell中输入这个命令.
git config --global http.proxy http://<proxy-ip>:<proxy-port>
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
14577 次 |
| 最近记录: |