我不确定这是否是讨论 git-lfs 的正确论坛,但由于我们有一个标签,我将发布我的问题。我已阅读“Bitbucket 中的 Git LFS 故障排除”页面 https://confluence.atlassian.com/bitbucket/troubleshoot-git-lfs-in-bitbucket-831652519.html.
我在运行时收到以下错误:
ssh-agent bash -c 'ssh-add /home/dan/.ssh/keyname; git clone [email protected] /cdn-cgi/l/email-protection:[repo name removed].git'
$ git-lfs smudge -- [文件名已删除].zip 下载对象时出错:
[文件名已删除].zip([代码已删除]):涂抹错误:下载时出错
[文件名已删除].zip([代码已删除]):[[代码已删除]对象确实
服务器上不存在:[404]服务器上不存在对象
[404]服务器上不存在对象
github.com/git-lfs/git-lfs/errors.newWrappedError
/tmp/docker_run/src/github.com/git-lfs/git-lfs/errors/types.go:170:
[[代码已删除]] 服务器上不存在对象
github.com/git-lfs/git-lfs/errors.newWrappedError
/tmp/docker_run/src/github.com/git-lfs/git-lfs/errors/types.go:170:
下载 [文件名已删除].zip 时出错([代码已删除])
github.com/git-lfs/git-lfs/errors.newWrappedError
/tmp/docker_run/src/github.com/git-lfs/git-lfs/errors/types.go:170:
涂抹错误
有人有什么建议吗?
我最终找到了 strich 的答案:https://github.com/git-lfs/git-lfs/issues/911 https://github.com/git-lfs/git-lfs/issues/911
我过去也遇到过类似的问题,我认为可能是
使用 git lfs 克隆的潜在错误(仍有待确定)。你
可以尝试这种获取存储库的方法,实际上也更快:
// Skip smudge - We'll download binary files later in a faster batch
git lfs install --skip-smudge
// Do git clone here
git clone ...
// Fetch all the binary files in the new clone
git lfs pull
// Reinstate smudge
git lfs install --force
只需完成一次即可初始化第一个克隆
时间。
请测试它并让我知道它是否修复了它。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)