原因
出现这个的原因多半是因为要访问外网所以使用了代理服务器, 但是在git clone的时候出错
[root@shanghai]~# sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
Cloning Oh My Zsh...
error: RPC failed; result=35, HTTP code = 0
fatal: The remote end hung up unexpectedly
Error: git clone of oh-my-zsh repo failed
解决方案
查看自己的git代理
git config --global --get http.proxy
git config --global --get https.proxy
重置代理
git config --global --unset http.proxy
git config --global --unset https.proxy
设置自己的代理
git config --global http.proxy '127.0.0.1:8000'
git config --global https.proxy '127.0.0.1:8000'
添加远程代理(如果有)
git config --global --add remote.origin.proxy "代理服务器:端口"
再次查看自己的git代理
git config --global --get http.proxy
git config --global --get https.proxy
问题解决