Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/git/22.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
GitHub:LinuxAndroid内核源代码。不能推也不能拉_Git_Github_Linux Kernel_Git Push - Fatal编程技术网

GitHub:LinuxAndroid内核源代码。不能推也不能拉

GitHub:LinuxAndroid内核源代码。不能推也不能拉,git,github,linux-kernel,git-push,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

我正试图将内核源代码推送到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'.
无法拉取,因为您有未合并的文件。
请在工作树中修复它们,然后使用“git add/rm”
根据需要标记解析,或使用“git commit-a”。

现在我不知道该怎么办。

您必须提交或隐藏所有文件,然后才能提取

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

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

非常感谢现在我解决了输入“git add.”和“git add-u”,然后是“git push等等…”