GitHub:Linux Android内核源码。不能推或拉

时间:2013-06-28 09:11:47

标签: git github linux-kernel git-push

我正在尝试将我的内核源代码推送到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'

请,我做什么?

我也尝试过使用repo并尝试推送提交但是我收到了这个错误:

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'.

现在我不知道该怎么办。

1 个答案:

答案 0 :(得分:0)

您必须提交或存储所有文件才能提取。

下面是添加所有文件的简单方法,提交它们并将它们推送到master遥控器上的origin分支:

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