社区所有版块导航
Python
python开源   Django   Python   DjangoApp   pycharm  
DATA
docker   Elasticsearch  
aigc
aigc   chatgpt  
WEB开发
linux   MongoDB   Redis   DATABASE   NGINX   其他Web框架   web工具   zookeeper   tornado   NoSql   Bootstrap   js   peewee   Git   bottle   IE   MQ   Jquery  
机器学习
机器学习算法  
Python88.com
反馈   公告   社区推广  
产品
短视频  
印度
印度  
Py学习  »  Git

git pull/push返回:致命:协议错误:错误的行长度字符:。_

Roham Rafii • 5 年前 • 1312 次点击  

当我奔跑 $git push $git pull dev master ,我收到此错误:

致命:协议错误:错误的行长度字符:_

我找到了这个解决方案:

ssh <host> git-receive-pack <path-to-git-repository>

我运行它。以下是服务器响应:

00..4b29e780 refs/heads/master report- 
status delete-refs side-band-64k quiet ofs-delta agent=git/1.8.3.1
00..4b29e780 refs/remotes/origin/HEAD
00..4b29e780 refs/remotes/origin/master
0000

这是什么意思?怎么了?

Python社区是高质量的Python/Django开发社区
本文地址:http://www.python88.com/topic/44342
 
1312 次点击  
文章 [ 1 ]  |  最新文章 5 年前
VonC
Reply   •   1 楼
VonC    6 年前

检查输出 ssh git@YourServer

一般来说,它是某种欢迎消息(因为git服务器应该禁止交互式会话)。

但如果你看到其他输出 之前 这条欢迎消息将解释使用ssh时的任何git错误。如前所述,检查该帐户的资源文件 输出任何文本。