1.安装 lfs: git lfs install

2.跟踪大文件:git lfs track "file.suffix"

3.添加配置文件:git add .gitattributes

之后正常提交,不过可能会遇到这个问题:

Remote "origin" does not support the LFS locking API. Consider disabling it with:...

4.再执行此命令:

$ git lfs push origin master --all

05-16 18:59