大文件支持

git init .
# 让仓库支持LFS
git lfs install
git lfs track "*"
git add .gitattributes
git commit -m "Add \"*.bigfile\" LFS config "

# 添加大文件
git add dyrone.bigfile
git commit -m "Add a really big file"
# 查看跟踪的大文件
git lfs track
git push

常用命令

git lfs status  // 查看当前git lfs对象的状态

git lfs ls-files  // 查看当前哪些文件是使用lfs管理的

参考