相关疑难解决方法(0)

Git推送导致致命:协议错误:线路长度不好:这个

我想让GitLab在我的服务器上运行(运行CentOS 6.5).我跟着gitlab-receipe到线,但我无法让它工作.我能够访问Web界面,创建新项目但推送到主分支返回以下错误:

fatal: protocol error: bad line length character: This
Run Code Online (Sandbox Code Playgroud)

我已经对生产环境进行了检查,结果如下:

Checking Environment ...

Git configured for git user? ... yes

Checking Environment ... Finished

Checking GitLab Shell ...

GitLab Shell version >= 1.7.9 ? ... OK (1.8.0)
Repo base directory exists? ... yes
Repo base directory is a symlink? ... no
Repo base owned by git:git? ... yes
Repo base access is drwxrws---? ... yes
update hook up-to-date? ... yes
update hooks in repos are links: ... …
Run Code Online (Sandbox Code Playgroud)

git ssh repository gitlab

37
推荐指数
3
解决办法
8万
查看次数

无法在Windows上克隆,但可以从Gitlab服务器在Linux上克隆

我试图通过SSH从远程Gitlab服务器克隆存储库.我使用Gitlab CE version 9.3.9 755bb71TortoiseGIT version 2.5.0git (for windows) version 2.14.0

SSH密钥已正确安装,因为我已使用测试身份验证

ssh -vT git@192.168.100.100 -i /path/to/.ssh/key
Run Code Online (Sandbox Code Playgroud)

我使用上面的密钥获得以下消息验证成功

OpenSSH_7.5p1, OpenSSL 1.0.2k  26 Jan 2017
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Connecting to 192.168.100.100 [192.168.100.100] port 22.
debug1: Connection established.
debug1: identity file /path/to/.ssh/key type 1
debug1: key_load_public: No such file or directory
debug1: identity file /path/to/.ssh/key-cert type -1
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_7.5
debug1: Remote protocol version 2.0, …
Run Code Online (Sandbox Code Playgroud)

linux windows git tortoisegit gitlab

2
推荐指数
1
解决办法
838
查看次数

标签 统计

git ×2

gitlab ×2

linux ×1

repository ×1

ssh ×1

tortoisegit ×1

windows ×1