当前位置: 首页 > 工具软件 > git-issues > 使用案例 >

git升级遇到的错误

柴砚文
2023-12-01

C:\Users\Administrator>git update-git-for-windows   升级git命令
Git for Windows 2.27.0.windows.1 (64bit)
Update 2.31.1.windows.1 is available
Download and install Git for Windows 2.31.1 [N/y]? y
curl: (56) OpenSSL SSL_read: Connection was reset, errno 10054#        #        #


C:\Users\Administrator>git config --global http.sslVerify "false"  设置ssl状态

C:\Users\Administrator>git update-git-for-windows
Git for Windows 2.27.0.windows.1 (64bit)
Update 2.31.1.windows.1 is available
Download and install Git for Windows 2.31.1 [N/y]? y
curl: (28) Failed to connect to github.com port 443: Timed out  #        #


C:\Users\Administrator>git config --global http.proxy 127.0.0.1:1080   设置代理

C:\Users\Administrator>git update-git-for-windows
Using proxy server 127.0.0.1:1080 detected from git http.proxy
curl: (7) Failed to connect to 127.0.0.1 port 1080: Connection refused

C:\Users\Administrator>git config --global http.proxy   查看是否有代理
127.0.0.1:1080

C:\Users\Administrator>git config --global --unset http.proxy   取消代理

C:\Users\Administrator>git update-git-for-windows   继续升级  
Git for Windows 2.27.0.windows.1 (64bit)
Update 2.31.1.windows.1 is available
Download and install Git for Windows 2.31.1 [N/y]? y
################################################################################################################ 100.0%-###############

 git升级报错ssl证书问题,设置后继续升级报错443端口超时,百度了下需要设置代理,设置后不行,取消代理就莫名的可以了,记录下

 类似资料: