git lfs pull in repository 产生关于 dial tcp 的错误
git lfs pull in repository produces an error about dial tcp
存储库中的 git lfs pull
产生以下错误:
oobarbazanoo@LAPTOP-CQEVT11F MINGW64 /c/Projects/doesnotmatter/ecom-oneapp-data-staging/ecom-oneapp-data-staging (master)
$ git lfs pull
batch response: Post https://yaroslavvaltech@bitbucket.org/doesnotmatter/ecom-oneapp-data-staging.git/info/lfs/objects/batch: proxyconnect tcp: dial tcp: lookup helloInternet: no such host
batch response: Post https://yaroslavvaltech@bitbucket.org/doesnotmatter/ecom-oneapp-data-staging.git/info/lfs/objects/batch: proxyconnect tcp: dial tcp: lookup helloInternet: no such host
batch response: Post https://yaroslavvaltech@bitbucket.org/doesnotmatter/ecom-oneapp-data-staging.git/info/lfs/objects/batch: proxyconnect tcp: dial tcp: lookup helloInternet: no such host
batch response: Post https://yaroslavvaltech@bitbucket.org/doesnotmatter/ecom-oneapp-data-staging.git/info/lfs/objects/batch: proxyconnect tcp: dial tcp: lookup helloInternet: no such host
batch response: Post https://yaroslavvaltech@bitbucket.org/doesnotmatter/ecom-oneapp-data-staging.git/info/lfs/objects/batch: proxyconnect tcp: dial tcp: lookup helloInternet: no such host
batch response: Post https://yaroslavvaltech@bitbucket.org/doesnotmatter/ecom-oneapp-data-staging.git/info/lfs/objects/batch: proxyconnect tcp: dial tcp: lookup helloInternet: no such host
...
问题似乎与代理配置错误有关。因此,我决定尝试 运行 命令 git config --global --unset http.proxy
,然后再次 git lfs pull
。它没有帮助,我得到了与上面相同的错误。
我正在使用 Windows10。这是文件的副本 C:\Windows\System32\drivers\etc\hosts.file
:
# Copyright (c) 1993-2009 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
#
# For example:
#
# 102.54.94.97 rhino.acme.com # source server
# 38.25.63.10 x.acme.com # x client host
# localhost name resolution is handled within DNS itself.
# 127.0.0.1 localhost
# ::1 localhost
如您所见,其中没有指定 helloInternet
主机。实际上该文件是完全空白的,因为它只包含评论。
我该如何解决?
所以,这是我的环境变量:
enter image description here
删除 http_proxy
变量并尝试命令后一切正常。
Go 和大多数其他处理代理的工具都支持多个环境变量来控制所使用的代理。对于 HTTP,这是 http_proxy
环境变量,对于 HTTPS,同时参考 http_proxy
和 https_proxy
。
您的环境中可能设置了其中一项或两项;取消设置可能会帮助您直接连接到服务器。
git lfs pull
产生以下错误:
oobarbazanoo@LAPTOP-CQEVT11F MINGW64 /c/Projects/doesnotmatter/ecom-oneapp-data-staging/ecom-oneapp-data-staging (master) $ git lfs pull
batch response: Post https://yaroslavvaltech@bitbucket.org/doesnotmatter/ecom-oneapp-data-staging.git/info/lfs/objects/batch: proxyconnect tcp: dial tcp: lookup helloInternet: no such host batch response: Post https://yaroslavvaltech@bitbucket.org/doesnotmatter/ecom-oneapp-data-staging.git/info/lfs/objects/batch: proxyconnect tcp: dial tcp: lookup helloInternet: no such host batch response: Post https://yaroslavvaltech@bitbucket.org/doesnotmatter/ecom-oneapp-data-staging.git/info/lfs/objects/batch: proxyconnect tcp: dial tcp: lookup helloInternet: no such host batch response: Post https://yaroslavvaltech@bitbucket.org/doesnotmatter/ecom-oneapp-data-staging.git/info/lfs/objects/batch: proxyconnect tcp: dial tcp: lookup helloInternet: no such host batch response: Post https://yaroslavvaltech@bitbucket.org/doesnotmatter/ecom-oneapp-data-staging.git/info/lfs/objects/batch: proxyconnect tcp: dial tcp: lookup helloInternet: no such host batch response: Post https://yaroslavvaltech@bitbucket.org/doesnotmatter/ecom-oneapp-data-staging.git/info/lfs/objects/batch: proxyconnect tcp: dial tcp: lookup helloInternet: no such host ...
问题似乎与代理配置错误有关。因此,我决定尝试 运行 命令 git config --global --unset http.proxy
,然后再次 git lfs pull
。它没有帮助,我得到了与上面相同的错误。
我正在使用 Windows10。这是文件的副本 C:\Windows\System32\drivers\etc\hosts.file
:
# Copyright (c) 1993-2009 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
#
# For example:
#
# 102.54.94.97 rhino.acme.com # source server
# 38.25.63.10 x.acme.com # x client host
# localhost name resolution is handled within DNS itself.
# 127.0.0.1 localhost
# ::1 localhost
如您所见,其中没有指定 helloInternet
主机。实际上该文件是完全空白的,因为它只包含评论。
我该如何解决?
所以,这是我的环境变量: enter image description here
删除 http_proxy
变量并尝试命令后一切正常。
Go 和大多数其他处理代理的工具都支持多个环境变量来控制所使用的代理。对于 HTTP,这是 http_proxy
环境变量,对于 HTTPS,同时参考 http_proxy
和 https_proxy
。
您的环境中可能设置了其中一项或两项;取消设置可能会帮助您直接连接到服务器。