admin管理员组文章数量:1648539
使用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,即可进行下载
版权声明:本文标题:【git】大文件git clone不下来问题 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://www.elefans.com/dongtai/1729493413a1202664.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论