Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/github/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Git 涂抹错误:下载时出错_Git_Github_Git Lfs - Fatal编程技术网

Git 涂抹错误:下载时出错

Git 涂抹错误:下载时出错,git,github,git-lfs,Git,Github,Git Lfs,我不确定这是否是讨论git lfs的合适论坛,但因为我们有一个标签,我将发布我的问题。我读过这本书 运行时出现以下错误: ssh-agent bash -c 'ssh-add /home/dan/.ssh/keyname; git clone git@bitbucket.org:[repo name removed].git' $git lfs污迹--[Filename已删除].zip下载对象时出错: [文件名已删除].zip([代码已删除]):污迹错误:下载时出错 [Filename r

我不确定这是否是讨论git lfs的合适论坛,但因为我们有一个标签,我将发布我的问题。我读过这本书

运行时出现以下错误:

ssh-agent bash -c 'ssh-add /home/dan/.ssh/keyname;  git clone git@bitbucket.org:[repo name removed].git' 
$git lfs污迹--[Filename已删除].zip下载对象时出错: [文件名已删除].zip([代码已删除]):污迹错误:下载时出错 [Filename removed].zip([code removed]):[[code removed]对象没有 服务器上不存在:[404]对象在服务器上不存在

[404]对象在服务器上不存在 github.com/git-lfs/git-lfs/errors.newWrappedError /tmp/docker_run/src/github.com/git lfs/git lfs/errors/types.go:170: 服务器上不存在[[code removed]]对象 github.com/git-lfs/git-lfs/errors.newWrappedError /tmp/docker_run/src/github.com/git lfs/git lfs/errors/types.go:170: 下载[Filename removed]时出错。zip([code removed]) github.com/git-lfs/git-lfs/errors.newWrappedError /tmp/docker_run/src/github.com/git lfs/git lfs/errors/types.go:170: 污迹误差


有人有什么建议吗?

我最终找到了strich的答案:on

我过去也有过类似的问题,我想可能会有一些问题 git lfs克隆中的潜在错误(仍有待确定)。您 您可以尝试这种获取回购协议的方法,这实际上也更快:

这只需执行一次即可为第一次初始化克隆 时间

请做测试,让我知道,如果它修复它


此损坏可能是由于另一个开发人员错误配置的git lfs推送到存储库,或者有时是由于推送过程中出现异常故障。请尝试从工作树中重新发送丢失的对象(使用其对象ID):

git lfs push --object-id <remote> <oid>
git-lfs-push——对象id

OID应该在污迹错误消息中。

我不能说我已经解决了这个问题。最终我放弃了,因为我遇到了其他错误。如果你不想放弃并重新下载整个存储库,请检查以下问题:(特别是关于
lfs.url
配置选项的答案).github答案的直接链接哇,我没想到会这样,但这对我来说很有效。可能在最初的lfs推送中,文件没有正确发送(最初使用sourcetree)。感谢P.S.idk为什么人们对此投了反对票,它实际上帮助了meI尝试了该命令。但是,新的克隆仍然失败。可能是我们的Gitlab的问题。结果是我们的Gitlab有错误的lfs设置。lfs数据没有按预期在机器之间同步。@ElpieKay你能为你扩展更多关于修复的内容吗?我遇到了同样的问题sue,上面的命令可以工作,但我觉得它更像是一种解决方法。它应该可以工作,而不必手动推送对象id。@GeorgeCimpoies我们有两台机器保存存储库数据。一台用于推送和获取,另一台仅用于获取。根据以前的设置,推送和获取机器上的lfs数据没有与另一台同步。When一个用户碰巧从另一台计算机获取数据,数据不可用。
git lfs push --object-id <remote> <oid>