2014-10-10 62 views
5

我的防火墙配置为拒绝所有入站和出站流量,除非规则另有说明。我如何让Git推/拉Windows 7防火墙?

Firewall Profile Screenshot

This answer建议制定规则为git.exesh.exessh.exe。所以我做了。即使是bash.exe

Firewall Rules Screenshot

不过当我运行git pull我看到:

fatal: unable to access 'https://[email protected]/joncom/my-repo.git/': Failed connect to bitbucket.org:443; No error

如果我默认允许出站连接,一切正常。

Firewall Profile Screenshot

我缺少什么规则?

回答

14

我需要为git-remote-https.exe添加规则,因为我通过HTTPS进行身份验证,而不是SSH。

在新版本的git上,它位于:C:\Program Files\Git\mingw64\libexec\git-core\git-remote-https.exe

编辑:其实我禁用了规则git.exesh.exessh.exe,并且bash.exe,仍然一切正常,所以他们似乎没有必要,我的目的。

0

所描述的使用:

git submodule update 

我不得不让$ GIT_BASH_LOCATION的/ usr/bin中/ ssh.exe通过防火墙。在几乎所有其他情况下,它都不被使用。