sudoy
V2EX  ›  问与答

github 传大文件用 LFS

  •  
  •   sudoy · Sep 1, 2020 · 2119 views
    This topic created in 2256 days ago, the information mentioned may be changed or developed.

    我的一个项目里面有两个 zip 文件,一个 70m,另外一个 40m. 上传到 GitHub 的时候提示说大文件建议用GitHub LFS 。传这么大的 zip 文件到 GitHub 仓库感觉有点罪恶感,好像把 GitHub 当网盘使用一样。请问大家遇到项目文件夹里面有一个或者多个超大文件( 50M 到 100M )的时候怎么处理?

    5 replies  •  2020-09-02 12:27:26 +08:00
    shiji
    shiji
    Sep 1, 2020❤️1
    1
    项目里没有这种文件。
    victor
    victor
    Sep 1, 2020❤️1
    2
    听劝,用 GitHub LFS
    Biwood
    Biwood
    Sep 1, 2020❤️1
    3
    Features
    Large file versioning
    Version large files—even those as large as a couple GB in size—with Git.

    Unity3D 编辑器就兼容 Github LFS,游戏项目的资源动辄就几个 G,你这点文件根本不算什么
    sudoy
    sudoy
    OP
    Sep 1, 2020
    4
    终于找到官方解释了,单个文件不超过 100M,整个项目文件夹不超过 5G,这是 GitHub 的规定。
    https://docs.github.com/en/github/managing-large-files/what-is-my-disk-quota
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   4944 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 42ms · UTC 07:07 · PVG 15:07 · LAX 23:07 · JFK 02:07
    ♥ Do have faith in what you're doing.