我正试图将我的内核源代码推送到github,但我遇到了一个错误:
$ git push origin master
Write failed: Broken pipe13/37078), 10.77 MiB | 65 KiB/s
fatal: The remote end hung up unexpectedly
error: pack-objects died of signal 13
error: failed to push some refs to 'git@github.com:Lopicl/ThunderKernel_cooperve.git'
拜托,我该怎么办?
我也尝试过分叉回购并尝试推送提交,但我得到了这个错误:
To git@github.com:Lopicl/thunderkernel_cooperve.git
! [rejected] master -> master (non-fast-forward)
error: failed to push some refs to 'git@github.com:Lopicl/thunderkernel_cooperve.git'
hint: Updates were rejected because the tip of your current branch is behind
hint: its remote counterpart. Merge the remote changes (e.g. 'git pull')
hint: before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
所以我试着撤回回购:
Pull is not possible because you have unmerged files.
Please, fix them up in the work tree, and then use 'git add/rm <file>'
as appropriate to mark resolution, or use 'git commit -a'.
现在我不知道该怎么办。
在提取之前,您必须提交或隐藏所有文件。
下面是添加所有文件、提交文件并将其推送到origin
远程上的master
分支的简单方法:
git add -A # Add all files to the index
git commit -m 'Your commit message' # Commit modifications
git pull origin master # Get last changes (useless if you work on only one computer)
git push origin master # Send changes