git - 如何获得直接链接到github LFS(大文件存储)中的文件?

标签 git github git-lfs

我使用Git LFS(大文件存储)将大文件上传到gitub。
首先,我可以从直接链接下载文件。

raw.githubusercontent.com/userName/reposiotry/master/file.mp4
但是第二天文件开始包含文本值
oid sha256:59f24bc922e1a48bb3feeba18b23f0e9622a7ee07166d925650d7a933283f8b1
尺寸123882252

如何下载此文件?如何获得直接链接?

最佳答案

引用此article

Storage quota

If you use more than 1 GB of storage without purchasing a data pack, you can still clone repositories with large assets, but you will only retrieve the pointer files, and you will not be able to push new files back up.


我假设您尚未在GitHub上为git lfs购买任何其他存储。如您所说,最初您可以通过以下链接访问它:http://raw.githubusercontent.com/userName/reposiotry/master/file.mp4我猜想您上传了更多此类文件,从而导致您超出了存储配额(即1 GB)。正如上面的文章所指出的,只有超出配额后,您才可以检索指针文件。
您可以在此处https://github.com/settings/billing检查是否超出了存储配额的限制
但是,如果我的假设是错误的,那么您可以尝试使用此链接获取文件https://media.githubusercontent.com/media/user_name/repository_name/branch_name/file_name

关于git - 如何获得直接链接到github LFS(大文件存储)中的文件?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58219778/

相关文章:

eclipse - 如何在 Eclipse 上卸载 git?

git - 无法解决 PR​​ 中的 GitHub 冲突

git - 将 Git LFS 与 TFS 2015 Update 2 OnPremise 结合使用

python - PIP3 安装总是尝试从 git-lfs 目录获取包

git - 轻量级标签可以转换为带注释的标签吗?

git - 将我的 github 分支回滚到较早的提交

iphone - Git: iOS 创建一个实验性的 iPad 分支

android - 从Android Studio从github导入外部库的问题

github - 我可以从私有(private) github 存储库公开发布吗?

windows - 无法使用 git lfs 克隆存储库