[英]Error when Trying to push local repository to github
大家好,我是 git/github 的新手,我嘗試將我的 repo 推送到 github,但一直給我這個錯誤,盡管我按照所有說明將其推送到我的 github。 錯誤是:
$ git push --all origin
Enumerating objects: 979, done.
Counting objects: 100% (979/979), done.
Delta compression using up to 8 threads
Compressing objects: 100% (939/939), done.
Werror: RPC failed; curl 56 OpenSSL SSL_read: Connection was reset, errno 10054
send-pack: unexpected disconnect while reading sideband packet
Writing objects: 100% (979/979), 3.34 GiB | 2.72 MiB/s, done.
Total 979 (delta 169), reused 0 (delta 0), pack-reused 0
fatal: the remote end hung up unexpectedly
Everything up-to-date
有 git 知識的人可以幫助 git 初學者嗎?
其原因可能是您到 GitHub 的 HTTPS 連接不正確,您可以使用 SSH 連接.
問題是由於 git/https 緩沖區設置造成的。 您可以通過將postBuffer
的 git 配置從默認1MB
增加到500MB
來解決此問題。
git config http.postBuffer 524288000
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.