简体   繁体   English

无法使用Windows命令在Windows 2008服务器中克隆GitLab存储库

[英]Unable to clone GitLab repository in a Windows 2008 server using Windows commands

I need to be able to clone GitLab repositories in a 64-bit Windows 7 laptop and in a 32-bit Windows 2008 Server using Windows command line – it must be through Windows command line. 我需要能够使用Windows命令行在64位Windows 7笔记本电脑和32位Windows 2008 Server中克隆GitLab存储库 - 它必须通过Windows命令行。 I installed Git for Windows in both, using pretty much the same options. 我在两者中安装了Git for Windows,使用了几乎相同的选项。 Running the git clone command below works in the laptop BUT it does not in the server: 下面运行git clone命令在笔记本电脑中工作但它不在服务器中:

H:>git clone --branch master http://username@gitlab.company.com/username/test.git e:\\gitlab\\test Cloning into 'e:\\gitlab\\test'... fatal: full write to remote helper failed: Broken pipe H:> git clone --branch master http: //username@gitlab.company.com/username/test.git e:\\ gitlab \\ test克隆到'e:\\ gitlab \\ test'...致命:完全写入远程助手失败:管道破裂
H:>error: remote-curl: error reading command stream from git H:>错误:remote-curl:从git读取命令流时出错

I searched the above error messages and I found that the common suggestions are to check Network connection to the repositories and the AntiVirus. 我搜索了上面的错误消息,我发现常见的建议是检查网络连接到存储库和AntiVirus。 I did both with the help of a Windows System Administrator and we got nowhere so I started looking at the git config options and I while running the following commands: 我在Windows系统管理员的帮助下做了两件事我们无处可去,所以我开始查看git配置选项,并在运行以下命令时:

H:>git --version git version 2.21.0.windows.1 H:> git --version git version 2.21.0.windows.1
H:>git config --global --edit H:> git config --global --edit
H:>git config --global --get gui.maxfilesdisplayed H:> git config --global --get gui.maxfilesdisplayed
20000 20000
H:>set GIT_TRACE=1 H:>设置GIT_TRACE = 1
H:>git config --global --list 08:45:23.918834 exec-cmd.c:236 trace: resolved executable dir: C:/Program Files/Git/mingw32/bin 08:45:24.106035 git.c:419 trace: built-in: git config --global --list 08:45:24.277636 run-command.c:643 trace: run_command: unset GIT_PAGER_IN_USE; H:> git config --global --list 08:45:23.918834 exec-cmd.c:236 trace:已解决的可执行文件目录:C:/ Program Files / Git / mingw32 / bin 08:45:24.106035 git.c:419 trace:内置:git config --global --list 08:45:24.277636 run-command.c:643 trace:run_command:unset GIT_PAGER_IN_USE; LESS=FRX LV=-c less Missing filename ("less --help" for help) LESS = FRX LV = -c less缺少文件名(“少 - 帮助”帮助)
H:> H:>

I found out that I can 1 - edit the global and system configuration files 2 – list a specific option BUT I cannot list their options using –list or --list --show-origin. 我发现我可以1 - 编辑全局和系统配置文件2 - 列出一个特定的选项但我不能使用-list或--list --show-origin列出他们的选项。

I wonder is the issue with the config is impacting the git clone command. 我想知道配置的问题是影响git clone命令。 Any suggestions? 有什么建议么?

Thanks, 谢谢,

After 7 months trying to figure this out, I found the exact same issue reported by Demon-Ru here: https://github.com/git-for-windows/git/issues/1742#issuecomment-473515386 在试图解决这个问题7个月之后,我发现了Demon-Ru报告的完全相同的问题: https//github.com/git-for-windows/git/issues/1742#issuecomment-473515386

I followed the suggestion by DeeDeeG and installed Git for Windows 2.16.1.windows.1 - https://github.com/git-for-windows/git/releases/tag/v2.16.1.windows.1 on the server and both issues were resolved. 我按照DeeDeeG的建议,在服务器上安装了Git for Windows 2.16.1.windows.1 - https://github.com/git-for-windows/git/releases/tag/v2.16.1.windows.1两个问题都得到了解决

Thanks everyone how look at helping! 谢谢大家如何看待帮助! Be good

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM