git-lfs
GitHub默认最高支持单次上传文件100MB
git-lfs:git large file storage
下载git lfs工具
命令
在工作目录打开git bash。
# 1. 启用lfs
git lfs install
# 2. 要上传的文件,这里指定目录下的所有pdf文档
git lfs track "*.pdf"
# 3. 添加gitattributes文件
git add .gitattributes
# 4. 指定pdf文件加入本地仓库
git add *.pdf
# 5. 上传描述
git commit -m "your desp"
# 6. 上传到main分支
git push origin main