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

  • VS 2015 + Bower: Does not work behind firewall
  • Getting error while trying to push to Heroku
  • Connecting to gitosis server through an SSH tunnel
  • How to know export proxy working or Not
  • Git clone error “HTTP code 504 from proxy after CONNECT”
  • git push/pull times out
  • 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 '': Failed connect to; No error

    If I allow outbound connections by default, everything works.

    Firewall Profile Screenshot

    What rule am I missing?

  • Host key verification failed Xcode with Mavericks Server
  • How to import a local GIT/Maven project/folder into eclipse?
  • How to use a Git merge tool to resolve react-native-git-upgrade conflicts?
  • Porting GIT merging capabilities to SVN?
  • Share unfinished work (uncommited and new files) via Git
  • Use url Link to specific CR number in Starteam
  • 2 Solutions collect form web for “How can I let Git push/pull through Windows 7 Firewall?”

    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.

    I had the same problem but since I don’t have a git-remote-https.exe I needed to open the Ports for git. You need to open the ones described in this question here.

    Git Baby is a git and github fan, let's start git clone.