Git push无法连接到gitlab.com端口443:访问错误 [英] Git push Failed to connect to gitlab.com port 443: Bad access
问题描述
我使用git和gitlab。
我无法再从Windows PC推送到我的回购站。
错误:
achita @ DESKTOP-IAEDBE2 MINGW64 / c / RachitaData / Git / Projects / Pms(master)
$ git status
在分支大师
你的分支在'origin / master'之前提交1个提交。
(使用git push发布你的本地提交)
没有提交,工作目录干净
Rachita @ DESKTOP-IAEDBE2 MINGW64 / c / RachitaData / Git / Projects / PMS(master)
$ git push -u origin master
致命:无法访问'https://gitlab.com/aarfid/aarfidProjects.git/':无法连接到gitlab.com端口443:访问错误
编辑
Ping命令找不到主机
ping https://gitlab.com/aarfid/aarfidProjects.git
Ping请求找不到主机https://gitlab.com/aarfid/aarfidProjects.git。请检查名称并重试。
C:\ Users \Rachita\Downloads\curl- 7.33.0-win64-ssl-sspi> ping gitlab.com
Pinging gitlab.com [ 104.210.2.228]与32个字节的数据:
请求超时。
104.210.2.228的Ping统计数据:
数据包:发送= 1,收到= 0,丢失= 1(100%丢失),
Control-C
^ C
卷曲
C:\ Users \Rachita\Downloads\curl- 7.33.0-win64-ssl-sspi> curl https://gitlab.com/aarfid/aarfidProjects。 git
curl:(7)无法连接到gitlab.com:443;无错误
C:\ Users \Rachita\Downloads\curl- 7.33.0-win64-ssl-sspi> curl gitlab.com
curl:(7)连接失败到gitlab.com:80;没有错误
尽管我可以在浏览器上打开gitlab.com
EDIT1
防火墙设置
$ b
C:\ Users \Rachita\Downloads\curl- 7.33.0-win64-ssl-sspi> netsh advfirewall显示currentprofile
私人资料设置:
---------------------------------------- ------------------------------
State ON
防火墙策略BlockInbound,AllowOutbound
LocalFirewallRules N / A(GPO-商店只)
LocalConSecRules N / A(GPO-商店只)
InboundUserNotification启用
RemoteManagement禁用
UnicastResponseToMulticast启用
记录:
LogAllowedConnections禁用
LogDroppedConnections禁用
FileName %systemroot%\system32\LogFiles\Firewall\pfirewall.log
MaxFileSize 4096
我关掉了防火墙,问题就像das_j建议的那样解决了。
$
netsh advfirewall将allprofiles状态设为关闭
$ b 关闭wirewall b
关闭防火墙并解决问题,正如das_j建议的评论
将wirewall关闭
netsh advfirewall将allprofiles设置为关闭状态
I use git with gitlab.
I'm no longer able to push to my repo from windows pc. git is no longer asking for password.
The error:
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
EDIT
Ping command cannot find host
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
Although I'm able to open gitlab.com on the browser
EDIT1
firewall settings
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
SOLUTION
I turned off the firewall and the problem was solved as suggested by das_j in comment
To turn wirewall off
netsh advfirewall set allprofiles state off
turned off the firewall and the problem was solved as suggested by das_j in comment
To turn wirewall off
netsh advfirewall set allprofiles state off
这篇关于Git push无法连接到gitlab.com端口443:访问错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!