鍍金池/ 問答/Linux/ git 提交代碼報錯

git 提交代碼報錯

git status:

On branch master
Your branch is ahead of 'origin/master' by 2 commits.
  (use "git push" to publish your local commits)

nothing to commit, working tree clean

git push:

Counting objects: 29, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (28/28), done.
error: RPC failed; curl 56 OpenSSL SSL_read: SSL_ERROR_SYSCALL, errno 10054
fatal: The remote end hung up unexpectedly
Writing objects: 100% (29/29), 2.45 MiB | 1.42 MiB/s, done.
Total 29 (delta 1), reused 0 (delta 0)
fatal: The remote end hung up unexpectedly
Everything up-to-date

請問是什么問題呢?

回答
編輯回答
終相守

你看下你添加的遠(yuǎn)程倉庫git remote -v, 試試在https和ssh方式間切換一下

2018年9月12日 06:41
編輯回答
未命名

應(yīng)該是網(wǎng)絡(luò)問題,重新push幾次,我這邊也遇到過,一般網(wǎng)絡(luò)丟包率較高導(dǎo)致

2017年5月19日 21:33
編輯回答
入她眼
2017年11月16日 12:07
編輯回答
負(fù)我心

這樣
git push origin master:xxx(隨便命名,用來自己提交使用)
遠(yuǎn)程倉庫有人把你的代碼閱讀之后merge到master上就可以

2017年10月22日 14:37