项目场景:
android studio连接github,再上传本地项目时候,能够远程创建新的文件库
问题描述
但是无法成功初始化该库,并完整上传该项目:
Can't finish GitHub sharing process
Successfully created project 'xxxx' on GitHub, but initial push failed:
unable to access 'https://github.com/xxxx/xxxxxxx.git/': OpenSSL SSL_read: Connection was reset, errno 10054
原因分析:
git在拉取或者提交项目时,中间会有git的http和https代理,但是我们本地环境本身就有SSL协议了,所以取消git的https代理即可,不行再取消http的代理。
解决方案:
在项目文件夹的命令行输入如下命令。
取消git本身的https代理,使用自己本机的代理,如果没有的话,其实默认还是用git的
//取消http代理
git config --global --unset http.proxy
//取消https代理
git config --global --unset https.proxy