Git push 连接gitlab.com端口443失败 : Bad access

标签 git

我将 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/

相关文章:

推送时 Git 意外结束 JSON inputB/s

git - 如何将没有点的文件(所有无扩展名的文件)添加到 gitignore 文件?

git - 你在什么系统上使用 git

git - 没有提交的 git repo 中的未暂存文件

git - git删除多个远程分支

git - 忽略 bash 反引号执行而不转义 git commit 中的 ` 字符

git - 如何解决 Git 分支名称中的大小写问题?

c++ - 作为子目录添加时,CMake 不构建库

git - 错误 : src refspec main does not match any error: failed to push some refs to <url>

image - 将图像添加到 BitBucket 上的 README.md