首页 > 解决方案 > 使用 Git LFS 从 github 下载失败

问题描述

我尝试使用 git clone 从这个存储库下载存储库。当我使用

git clone https://github.com/eshijia/knowledge-graph-keras.git

我收到以下错误:

Error downloading object: data/freebase15k/freebase_15k-id2entity.pkl (d40c058):                                                             Smudge error: Error downloading data/freebase15k/freebase_15k-id2entity.pkl (d4                        0c05819ce4431249d27970c5c6abbd4a09b9616f3321c5082227be7a5eea0d): LFS: Get https:                                                             //github-cloud.s3.amazonaws.com/alambic/media/127872792/d4/0c/d40c05819ce4431249 d27970c5c6abbd4a09b9616f3321c5082227be7a5eea0d?X-Amz-Algorithm=AWS4-HMAC-SHA256& X-Amz-Credential=AKIAIMWPLRQEC4XCWWPA%2F20180619%2Fus-east-1%2Fs3%2Faws4_request &X-Amz-Date=20180619T071649Z&X-Amz-Expires=3600&X-Amz-Signature=e4c596e3046463c5 0dc27e23ca22fbb036a9aa25f48449467af2b3b71117e8da&X-Amz-SignedHeaders=host&actor_ id=0&token=1: dial tcp 219.76.4.4:443: connectex: A connection attempt failed be                                                              cause the connected party did not properly respond after a period of time, or es                                                            tablished connection failed because connected host has failed to respond.

Errors logged to C:\Users\User\Desktop\Learning Materials\programming\python_cod                                       e\DL\knowledge-graph-keras\.git\lfs\logs\20180619T151710.7131223.log Use `git lfs logs last` to view the log. error: external filter 'git-lfs filter-process' failed fatal: data/freebase15k/freebase_15k-id2entity.pkl: smudge filter lfs failed warning: Clone succeeded, but checkout failed. You can inspect what was checked out with 'git status' and retry the checkout with 'git checkout -f HEAD'

但是,如果我data/freebase15k/freebase_15k-id2entity.pkl直接从原始 github 页面下载,则可以很好地下载 pkl 文件。

有什么解决办法吗?

PS:我的git版本是2.17.1.windows.2

标签: gitgithubgit-lfs

解决方案


Rewiev 失败了 GIT-LFS

联系

解决方案可能是由连接不良引起的。

Git LFS 安装错误

您的驱动器上的 LFS 安装存在问题。我能够解决它的唯一方法是:

• 删除硬盘上出现故障的存储库。卸载任何 git-lfs 实例

• 为 windows 安装 git-lfs

• 在 SourceTree 的 repo 下拉列表中验证 git-lfs 已初始化

• 打开Git shell,导航到刚刚克隆的本地repo

• 键入 git lfs install

• 键入 git pull

• 键入 git lfs pull

如果没有立即找到解决方案的替代方案

分部下载

La web minhaskamal.github.io允许您下载项目所需的文件夹,您只需要指明 url 就可以了,方便又简单。网络 gitdown

从 github 下载为 zip

另一种选择是从同一个存储库下载:

Clone > Download Zip

下载zipgithub

第三方软件

您还可以将其用于:

  • 支持 Git 的 IDE,您可以在其中尝试下载存储库。

  • GUI 客户端:GIT 下载/gui/


推荐阅读