gitwindows-7firewallwindows-firewall

How can I let Git push/pull through Windows 7 Firewall?


My firewall is configured to deny all inbound and outbound traffic unless a rule says otherwise.

Firewall Profile Screenshot

This answer suggests making rules for git.exe, sh.exe, and ssh.exe. So I did. Even bash.exe.

Firewall Rules Screenshot

Still when I run git pull I see:

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

If I allow outbound connections by default, everything works.

Firewall Profile Screenshot

What rule am I missing?


Solution

  • I needed to add a rule for git-remote-https.exe because I'm authenticating via HTTPS, not SSH.

    On new versions of git, this is located at: C:\Program Files\Git\mingw64\libexec\git-core\git-remote-https.exe.

    Edit: In fact I disabled the rules for git.exe, sh.exe, ssh.exe, and bash.exe, and still everything works, so they seem unnecessary for my purposes.