使用git(bitbucket)没有网络连接

时间:2014-11-16 20:27:50

标签: git bitbucket

我正在使用git bash来克隆bitbucket上的存储库。

git clone https://my-user-name@bitbucket.org/repo-name

我收到错误消息

Cloning into 'repo'...
fatal: unable to access 'https://my-user-name@bitbucket.org/my-user-name/repo-name':
Could not resolve host: bitbucket.org

我也不能ping。我的猜测是git bash无法访问网络 但我的命令提示符(cmd.exe)允许ping和其他网络命令 当我在git终端窗口中ping:

ping 192.168.1.1

Pinging 192.168.1.1 with 32 bytes of data:
Reply from 192.168.1.1: bytes=32 time=1ms TTL=64
Reply from 192.168.1.1: bytes=32 time<1ms TTL=64
Reply from 192.168.1.1: bytes=32 time=1ms TTL=64
Reply from 192.168.1.1: bytes=32 time=1ms TTL=64

Ping statistics for 192.168.1.1:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 0ms, Maximum = 1ms, Average = 0ms

但这种情况发生了:

ping google.com
Ping request could not find host google.com. Please check the name and try again
.

我该如何解决这个问题?

我在没有代理的网络上,禁用防火墙没有帮助

1 个答案:

答案 0 :(得分:0)

看到防火墙阻止了连接。我只是通过卸载防火墙来发现这一点。我没想到会出现这种情况,因为我已经禁用了防火墙,沙箱和HIPS。不知何故,该软件仍然阻止git上的网络访问。