git报错如下,怎么处理呢
1.网络问题,有时github不稳定,要么等待网络,要么直接下载zip的
2.至于其他方法
在访问github的时候遇到了如上的问题.
我的问题是result = 35 和 result = 7 之间无限循环.
如图所示,只要将https这五个字母,改成git就可以了.
[root@localhost usr]# git clone https://github.com/openmaptiles/openmaptiles.git
Cloning into 'openmaptiles'...
error: RPC failed; result=35, HTTP code = 0
fatal: The remote end hung up unexpectedly
[root@localhost usr]# git clone https://github.com/openmaptiles/openmaptiles.git
Cloning into 'openmaptiles'...
^C
[root@localhost usr]# ls
[root@localhost usr]# git clone https://github.com/openmaptiles/openmaptiles.git
Cloning into 'openmaptiles'...
fatal: unable to access 'https://github.com/openmaptiles/openmaptiles.git/': Encountered end of file
[root@localhost usr]# git clone git://github.com/openmaptiles/openmaptiles.git
Cloning into 'openmaptiles'...
^C
[root@localhost usr]# ^C
[root@localhost usr]# ^C
[root@localhost usr]#
[root@localhost usr]#
[root@localhost usr]# git config --global http.sslVerify "false"
[root@localhost usr]# git clone https://github.com/openmaptiles/openmaptiles.git
Cloning into 'openmaptiles'...
^C
[root@localhost usr]# ^C
[root@localhost usr]# ^C
[root@localhost usr]# git config --global --unset http.proxy
[root@localhost usr]# git config --global --unset https.proxy
[root@localhost usr]# git clone https://github.com/openmaptiles/openmaptiles.git
Cloning into 'openmaptiles'...
error: RPC failed; result=7, HTTP code = 0
fatal: The remote end hung up unexpectedly
[root@localhost usr]# git clone https://github.com/openmaptiles/openmaptiles.git
Cloning into 'openmaptiles'...
remote: Enumerating objects: 7593, done.
remote: Counting objects: 100% (492/492), done.
remote: Compressing objects: 100% (418/418), done.
remote: Total 7593 (delta 109), reused 413 (delta 74), pack-reused 7101
Receiving objects: 100% (7593/7593), 48.19 MiB | 5.59 MiB/s, done.
Resolving deltas: 100% (5109/5109), done.
[root@localhost usr]#