Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/linux/25.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Linux &引用;无法连接到github.com端口443:连接超时;推送到远程存储库时_Linux_Git_Ubuntu_Github - Fatal编程技术网

Linux &引用;无法连接到github.com端口443:连接超时;推送到远程存储库时

Linux &引用;无法连接到github.com端口443:连接超时;推送到远程存储库时,linux,git,ubuntu,github,Linux,Git,Ubuntu,Github,我已经“google”和“stackoverflow”太多了,但我还没有找到解决问题的方法 我在Ubuntu上,第一次尝试git 我做到了: sudo apt-get install git 并在网站上创建了一个帐户(并验证了电子邮件,一切正常)。然后我 在我的桌面和 cd /Desktop/gittest 然后: 这就是悲剧: 通过在写入git push-u origin master后单击enter,它将不执行任何操作,并在(多)秒后返回错误消息: 致命:无法访问“/gittest.gi

我已经“google”和“stackoverflow”太多了,但我还没有找到解决问题的方法

我在Ubuntu上,第一次尝试git

我做到了:

sudo apt-get install git
并在网站上创建了一个帐户(并验证了电子邮件,一切正常)。然后我

在我的桌面和

cd /Desktop/gittest
然后:

这就是悲剧: 通过在写入
git push-u origin master
后单击enter,它将不执行任何操作,并在(多)秒后返回错误消息:

致命:无法访问“/gittest.git/”:无法连接到github.com端口443:连接超时

  • 我该如何解决?请帮忙
编辑

如果我


什么也没有发生(终端返回一个空行)。

可能您在代理后面,您需要配置:

http.proxy
覆盖HTTP代理,通常使用HTTP_代理、https_代理和所有_代理环境变量进行配置(请参见curl(1))。除了curl所理解的语法之外,还可以指定一个带有用户名但没有密码的代理字符串,在这种情况下,git将尝试以与其他凭据相同的方式获取一个代理字符串。有关更多信息,请参阅gitcredentials(7)。因此,语法为[protocol://][user[:password]@]proxyhost[:port]。这可以在每个远程的基础上被覆盖;请参阅远程代理

太好了

要解决“无法连接到github.com端口443:超时”消息,我们需要运行:

git config--全局http.proxy

\用户名:password@proxyServer:8080

其中username是代理中的用户名,password是密码

完成了!您可以检查是否在运行git config--global http.proxy时应用了该设置

其他信息:

git config

快乐的脚本

我必须在\vsilva:Passw0rd替换什么?我必须用本地IPv4地址替换domain.local吗?
cd /Desktop/gittest
echo "# gittest" >> README.md
git init
git add README.md
git commit -m "first commit"
git remote add origin https://github.com/<my_username>/gittest.git
git push -u origin master
echo "$http_proxy"
echo "$https_proxy"
http.proxy
git config