比 3.4.7 新的 Sourcetree 无法获取/拉取致命协议错误:错误的行长度字符

问题描述 投票:0回答:2

我正在使用适用于 Windows 的 Atlassian Sourcetree,最近升级后,它停止使用我的一些存储库。

存储库配置为通过 SSH 协议(使用公钥和私钥)进行无密码访问。

当我尝试获取或拉取存储库时,它显示以下错误,其中“xxxx”是我的用户名的前 4 个字符:

fatal: protocol error: bad line length character: xxxx
FATAL ERROR: Error reading from console: Error 109: The pipe has been ended.

Completed with errors, see above.

升级前一切正常。

我测试了很多版本(3.3.9、3.4.0、3.4.1、3.4.2、3.4.3、3.4.4、3.4.5、3.4.6、3.4.7),发现最后一个工作版本是3.4.7,但较新的版本(3.4.8、3.4.9、3.4.10、3.4.11、3.4.12、3.4.13 和 3.4.14)在这方面已被破坏。

出了什么问题以及如何修复错误?

git ssh putty atlassian-sourcetree plink
2个回答
0
投票

就我而言,问题组件是 plink.exe(Putty 的一部分),与 Sourcetree 捆绑在一起。

Sourcetree 3.4.7 有 plink.exe 版本 “0.70.2-sourcetree” 专门为 Sourcetree 项目编译,但较新的版本具有来自 https://www.chiark.greenend.org.uk 的通用 plink.exe /~sgtatham/putty/latest.html.

解决方法如下:

  • https://www.sourcetreeapp.com/download-archives
  • 下载适用于 Windows 3.4.7 的 Sourcetree
  • 安装它,并将文件 plink.exe 从程序目录: C:\Users{yourname}\AppData\Local\SourceTree pp-3.4.7 ools\putty\plink.exe 复制到临时位置,用于例如,C:emp
  • 安装最新版本的 Sourcetree for Windows 3.4.14
  • plink.exe 替换为保存的 plink.exe 版本
  • 享受最新的 Sourcetree 工作

我希望 Sourcetree 团队在未来的版本中修复这个错误。


0
投票

尝试将客户端更改为OpenSSH enter image description here

© www.soinside.com 2019 - 2024. All rights reserved.