1. 程式人生 > 其它 >【Github Push】解決 OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443

【Github Push】解決 OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443

老問題,新答案

問題:

有Proxy的時候,會出現這個錯誤,網路上說:

git config --global --unset http.proxy
git config --global http.sslVerify false

我網路不行,我為啥要unset proxy?
ssl是HTTPS協議的內容,為啥不讓校驗?

目前我發現:
是因為本地倉庫沒有設定origin remote。

解決方案

  1. 檢查 .gitconfig,是否有無效的Http.proxy, https.proxy
  2. 檢查 git remote -v 是否添加了https的origin專案地址。
  3. git remote add origin https://github.com/slankka/xxxx.git

提示

  • 該走通道的走通道,根本沒問題。
  • 別改 [email protected]這種協議,麻煩,還要走ssh協議,費勁。
  • 別改 https://username:[email protected]/,何必暴露自己密碼呢,或者配置AccessToken不麻煩?

正確操作就是什麼也別改,去檢查憑據管理器

認證失敗

  • 如果密碼更換過,去Windows憑據管理器,更新https協議的git密碼。
  • 再就是 git config --unset credential.helper或者 git config --system --unset credential.helper