我最近刚从XP升级到Win7操作系统。
我使用Windows防火墙并添加了Tinywall(可以提供更多的控制功能)
但是当我使用Git Bash时,防火墙会阻止所有命令。 如果我禁用防火墙,一切都正常。
我无法确定要添加到TinyWall白名单中的适当例外情况。
我已经添加了Shell窗口以及git.exe作为应用程序例外,但还是不行。 我添加的这些例外程序路径:
C:\Program Files (x86)\Git\git-cheetah\..\bin\sh.exe
C:\Program Files (x86)\Git\bin\git.exe
错误示例:
$ git pull
ssh: connect to host xxx.xxx.xxx port 22: Bad file number
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
C:\Program Files (x86)\Atlassian\SourceTree\tools\putty\plink.exe
列入白名单,这解决了我的问题。 - Mahn