我将 git 与 gitlab 结合使用。
我无法再从 Windows PC 推送到我的存储库。 git 不再要求输入密码。
错误:
achita@DESKTOP-IAEDBE2 MINGW64 /c/RachitaData/Git/Projects/Pms (master)
$ git status
On branch master
Your branch is ahead of 'origin/master' by 1 commit.
(use "git push" to publish your local commits)
nothing to commit, working directory clean
Rachita@DESKTOP-IAEDBE2 MINGW64 /c/RachitaData/Git/Projects/Pms (master)
$ git push -u origin master
fatal: unable to access 'https://gitlab.com/aarfid/aarfidProjects.git/': Failedto connect to gitlab.com port 443: Bad access
编辑
Ping命令找不到主机
ping https://gitlab.com/aarfid/aarfidProjects.git
Ping request could not find host https://gitlab.com/aarfid/aarfidProjects.git. Please check the name and try again.
C:\Users\Rachita\Downloads\curl-7.33.0-win64-ssl-sspi>ping gitlab.com
Pinging gitlab.com [104.210.2.228] with 32 bytes of data:
Request timed out.
Ping statistics for 104.210.2.228:
Packets: Sent = 1, Received = 0, Lost = 1 (100% loss),
Control-C
^C
curl
C:\Users\Rachita\Downloads\curl-7.33.0-win64-ssl-sspi>curl https://gitlab.com/aarfid/aarfidProjects.git
curl: (7) Failed connect to gitlab.com:443; No error
C:\Users\Rachita\Downloads\curl-7.33.0-win64-ssl-sspi>curl gitlab.com
curl: (7) Failed connect to gitlab.com:80; No error
虽然我可以在浏览器上打开gitlab.com
编辑1
防火墙设置
C:\Users\Rachita\Downloads\curl-7.33.0-win64-ssl-sspi>netsh advfirewall show currentprofile
Private Profile Settings:
----------------------------------------------------------------------
State ON
Firewall Policy BlockInbound,AllowOutbound
LocalFirewallRules N/A (GPO-store only)
LocalConSecRules N/A (GPO-store only)
InboundUserNotification Enable
RemoteManagement Disable
UnicastResponseToMulticast Enable
Logging:
LogAllowedConnections Disable
LogDroppedConnections Disable
FileName %systemroot%\system32\LogFiles\Firewall\pfirewall.log
MaxFileSize 4096
解决方案
我关闭了防火墙,按照das_j在评论中的建议解决了问题
关闭wirewall
netsh advfirewall set allprofiles state off
最佳答案
关闭防火墙,按照das_j在评论中的建议解决了问题
关闭线墙
netsh advfirewall set allprofiles state off
关于Git push 连接gitlab.com端口443失败 : Bad access,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34942310/