How can I let git push / pull through the windows 7 firewall?

My firewall is configured to block all inbound and outbound traffic unless the rule says otherwise.

Firewall Profile Screenshot

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

Firewall Rules Screenshot

However, 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 outgoing connections by default, everything works.

Firewall Profile Screenshot

Which rule am I missing?

+5
source share
3 answers

I needed to add a rule for git-remote-https.exe , because I authenticate through HTTPS, not SSH.

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

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

+15
source

I had the same problem, but since I don't have git -remote-https.exe, I needed to open the ports for git. You need to open the ones described in here.

0
source

Using:

 git submodule update 

I had to allow $ GIT_BASH_LOCATION / usr / bin / ssh.exe through the firewall. In almost all other cases, it is not used.

0
source

Source: https://habr.com/ru/post/1204410/


All Articles