Git以“边带解复用器中的错误” [英] Git responds with 'error in sideband demultiplexer'

查看:375
本文介绍了Git以“边带解复用器中的错误”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我设置了两台服务器(据我所知)完全一样。在其中之一上,使用git一直很好,但是在第二种情况下,我开始出现这个错误:


致命:远端意外挂断

错误:边带解复用器中出错


两者之间的一切都是一样的,包括 .git / hooks / post-receive 文件的内容。



是否有配置步骤我错过了某个地方,或者什么?我试过两次重新初始化回购,无济于事。



我的收到后文件如下:


#!/ bin / sh

cd ..

env -i git reset --hard


解决方案

关于 GitHub支持线程,这种错误似乎与一个版本库损坏

通过重置已损坏的远程控制台的头部来解决此问题回购(使用 git remote set-head )。


I have two servers set up (as far as I know) exactly the same. On one of them, committing with git has always been fine, however on the second one, I've started getting this error:

fatal: The remote end hung up unexpectedly
error: error in sideband demultiplexer

Everything is the same between the two, including the contents of the .git/hooks/post-receive file.

Is there a step in configuration I've missed somewhere, or something? I've tried reinitialising the repo twice now, to no avail.

My post-receive file is as follows:

#!/bin/sh
cd ..
env -i git reset --hard

解决方案

On this GitHub support thread, this kind of error seems to be related to a repository corruption of some kind.

The issue was fixed by resetting the head of the corrupt remote repo (with git remote set-head).

这篇关于Git以“边带解复用器中的错误”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆