$ /mingw64/bin/git fetch fatal: unable to access 'https://example.com/repo.git/': Received HTTP code 503 from proxy after CONNECT $ /mingw64/bin/git version git version 2.8.1.windows.1
适用于cmd.exe:
"C:\Program Files\Git\mingw64\bin\git.exe" fetch remote: Counting objects: 24, done. remote: Compressing objects: 100% (8/8), done. remote: Total 13 (delta 5), reused 9 (delta 1) Unpacking objects: 100% (13/13), done. "C:\Program Files\Git\mingw64\bin\git.exe" version git version 2.8.1.windows.1
当我使用github的git版本的时候,它也可以工作:
$ ~/AppData/Local/GitHub/PortableGit_25d850739bc178b2eb13c3e2a9faafea2f9143c0/cmd/git fetch remote: Counting objects: 25, done. remote: Compressing objects: 100% (9/9), done. remote: Total 13 (delta 6), reused 0 (delta 0) Unpacking objects: 100% (13/13), done. $ ~/AppData/Local/GitHub/PortableGit_25d850739bc178b2eb13c3e2a9faafea2f9143c0/cmd/git version git version 2.7.4.windows.1
我在github上创build了问题https://github.com/git-for-windows/git/issues/732
在bash中连接时,可能会设置http_proxy
环境变量,并且没有设置它,或者在从cmd
运行命令时将其设置为不同的值。 用set
命令检查两个环境