使用Git LFS从github下载失败

时间:2018-06-19 07:43:11

标签: git github git-lfs

我尝试使用git clone从this repository下载存储库。我用的时候

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'

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

对此有何解决方案?

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

1 个答案:

答案 0 :(得分:0)

修复GIT-LFS

失败

连接

解决方案可能由连接错误引起。

Git LFS的安装不正确

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

•删除失败的硬盘上的Repos。卸载git-lfs

的任何实例

•为Windows安装git-lfs

•在SourceTree的repo下拉列表中验证初始化

中的git-lfs

•打开Git shell,然后导航到刚刚克隆的本地仓库

•输入git lfs install

•输入git pull

•输入git lfs pull

如果找不到立即解决方案,则为替代方案

按部件下载

La web minhaskamal.github.io允许您下载项目所需的文件夹,您只需要指出网址即可,方便又轻松。web gitdown

从github

下载为zip

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

Clone > Download Zip

downloadzipgithub

第三方软件

您也可以将其用于:

  • 支持Git的IDE以及可以尝试下载存储库的位置。

  • GUI客户端:GIT download/gui/

相关问题