git 上传超过 100MB 的大文件
1、下载 git-lfs
下载地址:https://github.com/git-lfs/git-lfs/releases
选择Windows 386 或者 Windows Installer.
2、安装
如果选择Windows 386,解压下载的压缩包, 在命令行进入解压的目录,运行 git-lfs.exe
3、
进入 git仓库所在的目录后:
①git lfs install , 每台机器的每个仓库都运行一次该命令
②追踪pdf文件,git lfs track "*.pdf"
③提交代码需要将.gitattributes
文件提交至仓库. 它保存了文件的追踪记录,git add .gitattributes
git push时 有 Uploading LFS objects字样
参考: