下载地址:https://git-lfs.github.com/spec/v1
安装时注意要适配到指定的git.exe上
1、在git项目的根目录下,打开git bash命令窗口,执行命令
git lfs install
2、添加 lfs 跟踪大文件配置:git lfs track "大文件全名 或者 *.文件后缀名"
3、添加跟踪配置后会生成或更新文件.gitattributes
4、提交.gitattributes
文件到服务器
5、提交已添加跟踪的大文件,推送命令:git push --no-verify
或git push --all