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

  • How to know export proxy working or Not
  • Getting error while trying to push to Heroku
  • How to access Github through firewall playing man-in-the-middle when using https?
  • Trying to load files from github through a firewall is impossibly slow. Any suggestions for workarounds?
  • GIT Pull & Clone times out
  • VS 2015 + Bower: Does not work behind firewall
  • 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?

  • Completely remove every trace of git commit
  • Pulling git submodules using SSH key instead of password
  • Gerrit as a review tool, not as the repository of record
  • Using Git with TFS 2017 - Works in Visual studio but not Command Line
  • Push all local branches to origin in git
  • Version Control: multiple version hell, file synchronization
  • 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.