相关疑难解决方法(0)

当git克隆时,远程端意外挂断

git尝试克隆存储库一段时间后,我的客户端一再失败并出现以下错误.

这可能是什么问题?

注意:我已经向GIT托管服务提供商注册了我的SSH密钥

Receiving objects:  13% (1309/10065), 796.00 KiB | 6 KiB/s
fatal: The remote end hung up unexpectedly
Run Code Online (Sandbox Code Playgroud)

git

253
推荐指数
11
解决办法
30万
查看次数

为什么我不能从浅层克隆中推出?

git clone --depth命令选项说

--depth <depth> 
Create a shallow clone with a history truncated to the specified number of revisions. 
A shallow repository has a number of limitations 
(you cannot clone or fetch from it, nor push from nor into it),
 but is adequate if you are only interested in the recent history of a large project with a long history,
 and would want to send in fixes as patches. 
Run Code Online (Sandbox Code Playgroud)

为什么浅克隆有这种限制?为什么它只是一个补丁工作流程?

对于某些项目工作流程,我需要将最新的提交从单个分支传递给编码器,然后让它们能够push(快进)开发到主服务器.这部分是为了安全,知识产权保护和回购规模,部分是为了减少大回购会给天真编码员带来的困惑.是否有允许这样的git工作流程?


更新:根据Karl Bielefeldt的回答,git checkout --orphan …

git workflow git-clone

45
推荐指数
2
解决办法
3万
查看次数

Git致命:远程端挂了

所以我以为我终于在Windows上安装了所有东西......然后遇到了这个问题.

当前设置

URL:ssh:// user @ host:port/myapp.git

已经运行了Putty - 并且可以通过〜/ .ssh/authorized_keys直接使用有效的.ppk密钥进行连接.在Git和TortoiseGIT中 - 我将两者都设置为使用"plink.exe".

Putty工作正常 - 没有问题 - 但是当我将该URL运行到bash时,我得到了一个git clone(url)

致命的:远程端预计会挂断

在一个cygwin bash终端 - 运行"ssh user @ host" - 根本不工作.

有人建议吗?

windows git

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

当推送时,Git推送失败并带有"致命:早期EOF",但仅限于一个文件

当我尝试将纹理和文本文件添加到我的repo时,一切正常,但是当我尝试添加.blend文件时,我收到此错误.我尝试了一些我在这里和谷歌上找到的东西,它们都没有用(所有这些都是用于克隆/拉取命令)

我正在使用Tortoise git 1.7.8和Git 1.7.10 msysgit - 在最新版本失败后我改为使用它们.

其他人没有问题将事情推送到回购,但我没有向他们发送.blend文件.

这是输出:

Pushing to ssh://git@x.x.x:x/home/git/gitrepo
Counting objects: 4, done.
Compressing objects: 100% (3/3)
Writing objects: 100% (3/3), 112.00 KiB | 116 KiB/s
Writing objects: 100% (3/3), 113.07 KiB | 116 KiB/s, done.
Total 3 (delta 0), reused 0 (delta 0)
fatal: early EOF
error: unpack failed: unpack-objects abnormal exit
To ssh://git@x.x.x:x/home/git/gitrepo
! [remote rejected] master -> master (n/a (unpacker error))
error: failed to push some refs to 'ssh://git@x.x.x:x/home/git/gitrepo'
Run Code Online (Sandbox Code Playgroud)

编辑:现在看来这是一个服务器问题,因为github工作.如果我找到解决方案,我会更新.

git msysgit tortoisegit

13
推荐指数
2
解决办法
9675
查看次数

Visual Studio无法克隆远程存储库(早期EOF) - GIT

我最近按照本指南在Ubuntu Server 12.04上使用Apache(WebDAV)安装Git服务器,使用Apache(WebDAV)设置本地Git服务器.

我已经通过命令提示符将我的源代码推送到Git服务器.

我希望能够做的是使用Visual Studio拉/推/提交此源代码.从我所看到的,它似乎是可能的.当您尝试通过visual studio克隆此源代码时,我收到以下错误消息:

Error encountered while cloning the remote repository: Early EOF
Run Code Online (Sandbox Code Playgroud)

任何帮助或指示将不胜感激.

git visual-studio visual-studio-2015

7
推荐指数
1
解决办法
2568
查看次数

git clone问题:repo太大了?(50公尺)

因为无法克隆git repo而遇到了问题.它开始运行然后取消一半.我当前的git repo大小是53.7 MB Git版本在服务器和我的遥控器上是1.7.12.4.

错误如下:

MacBook-Pro:htdocs macbook$ git clone myrepo@mysite.com:~/opt/git/myrepo.git 
Cloning into 'myrepo'...
zcardepo@zcardepot.com's password:
remote: Counting objects: 8888, done.
remote: Compressing objects: 100% (7185/7185), done.
Write failed: Broken pipe267/8888), 1.03 MiB | 1001.00 KiB/s
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
Run Code Online (Sandbox Code Playgroud)

我创建了一个新的新回购,克隆就好了.一旦我将我的站点文件添加到它并将它们推送到远程.我再也无法从中克隆了.但我可以从中汲取它.

我添加了这个没有运气:

[core]
    compression = -1
[pack]
    windowMemory = 10m
    packSizeLimit = 20m
Run Code Online (Sandbox Code Playgroud)

我试着将这两者都提升到更高的价值.没运气

我也尝试在远程仓库上运行git gc --aggressive和git gc --prune.

我已经看过这篇文章了,但我的版本没有那么大(1g +)也看到一个人有问题与git版本不匹配,但这不是以太的情况.

git git-pull git-clone

4
推荐指数
1
解决办法
6632
查看次数