我试过用export http_proxy=http://[username]:[pwd]@[proxy]和git config --global http.proxy http://[username]:[pwd]@[proxy].
我无法让它发挥作用.看起来git使用Basic身份验证:
Initialized empty Git repository in /home/.../.git/
* Couldn't find host github.com in the .netrc file, using defaults
* About to connect() to github.com port 8080 (#0)
* Trying 10.... * Connected to github.com (10....) port 8080 (#0)
* Proxy auth using Basic with user '...'
> GET http://github.com/sunlightlabs/fiftystates.git/info/refs HTTP/1.1
Proxy-Authorization: Basic MD...
User-Agent: git/1.6.1.2
Host: github.com
Pragma: no-cache
Accept: */*
Proxy-Connection: Keep-Alive
< HTTP/1.1 407 Proxy Authentication Required ( …Run Code Online (Sandbox Code Playgroud) 我的公司网络使用PAC脚本.(http://proxyconf.xxx.yy-ss/proxy.pac).
在"git config"命令中使用PAC脚本不起作用."git config --global http.proxy http://proxyconf.xxx.yy-ss/proxy.pac "
我通过下载proxy.pac脚本(100个奇数条目),选择最通用(通常是最底层)代理,并在"git config --global http.proxy"命令中使用我的凭据来实现它.
我已经问过如何通过代理服务器使git工作:
但上述问题没有提及PAC脚本.
是否有一些设置可以直接使用proxy.pac脚本?
我使用名为tether的应用程序成功连接到互联网,用于越狱的iPhone.(我知道现在有更好的选择).
我的iphone连接到我的笔记本电脑的wifi"设备网络".
我在OS X网络设置中有一个名为iphone的位置,并且代理配置为使用正确的IP和端口用于手机.
我可以使用Chrome over http和https完美浏览互联网.
iTerm无法ping谷歌.Git不能拉.我用谷歌搜索了几天,看不到任何"简单"或我理解的东西.任何建议表示赞赏.
我在代理人后面.为了git工作,我将不得不添加
proxy = http://username:password@proxy.at.your.org:8080
Run Code Online (Sandbox Code Playgroud)
到.gitconfig.
既然username并且password是我的系统凭证,这个解决方案很糟糕,因为我必须将它们存储为cleartext.
我正在使用Google Chrome我不需要设置任何代理设置的地方,因为它使用系统代理设置.
怎么做git?
我能够将cntlm(请参阅其sourceforge项目)设置为我们的公司代理,浏览器通过它进行工作.http和https都有.
但是当我尝试运行时,它会发送几个初始包并挂起.结果目录大约是14kb.git clone -v https://github.com/spraints/git-tfs.git.git
相反,当我通过git直接在git中设置它时:
git config --global http.proxy http://domain\\\login:password@our-proxy-server:8088
Run Code Online (Sandbox Code Playgroud)
一切顺利.
你有什么建议吗?
或者可能是一些建议如何在不将密码放入明文配置的情况下将git连接到存储库?
我正在尝试从 github 获取 nova 代码,但出现以下错误:
#git clone https://github.com/openstack/nova.git
Initialized empty Git repository in /home/avikki/Desktop/nt/nova/.git/
error: Failed connect to github.com:443; Operation now in progress while accessing https://github.com/openstack/nova.git/info/refs
fatal: HTTP request failed
Run Code Online (Sandbox Code Playgroud)
你能建议怎么做吗?
在我的工作场所网络中,我们必须使用代理。我想使用 Composer a 为我的 Symfony2 项目下载一些包依赖项。即使使用代理信息声明环境变量后也不起作用。我注意到我们也无法使用公司的 DNS 来旋转任何外部名称。我认为这是不允许我们使用 Composer 下载的主要问题。事实是,我无法更改这些服务器上的任何内容或公司的政策。您认为我可以做一些事情来解析这些名称或访问这些资源来安装依赖项吗?这是错误:
The "http://thirds.packagist.dev/packages.json" file could not be downloaded (HTTP/1.0 503 Service Unavailable)
http://thirds.packagist.dev could not be fully loaded, package information was loaded from the local cache and may be out of date
[Composer\Downloader\TransportException]
The "https://packagist.org/packages.json" file could not be downloaded: SSL operation failed with code 1. O
penSSL Error messages:
error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure
failed to open stream: Cannot connect to HTTPS server through proxy
update [--prefer-source] [--prefer-dist] [--dry-run] [--dev] …Run Code Online (Sandbox Code Playgroud)