admin管理员组

文章数量:1648545

使用git clone时,有时候会遇到大文件拉取不下来的情况,这时候就需要用git lfs拉取,对于未装git lfs的用户可以使用现成的docker,附git-lfs的docker使用链接:jgpelaez/git-lfs - Docker Image | Docker Hub

安装完git-lfs之后, 通过以下命令就可以下载大文件了

git lfs fetch

另外,在使用git lfs下载的时候,会遇到一些错误,比如:

trace git-lfs: api error: Post [URL REMOVED]/info/lfs/objects/batch: net/http: TLS handshake timeout

This repository is over its data quota. Account responsible for LFS bandwidth should purchase more data packs to restore access

等。

以下是一种解决方法:

1,fork 当前repo到自己的repo里

2,在自己fork的repo里找到repo settings

 3,在settings 找到 "Include Git LFS objects in archives", 并选中

 4,在 “Danger Zone section" 部分选择 ”Archive this repository",然后确认并验证

 5, 返回到repo主页,点击 Download as .zip,即可进行下载

本文标签: 大文件Gitclone