Remove Lfs From Git Repo

git lfs uninstall
rm .gitattributes
touch .gitattributes
git lfs ls-files | sed -r 's/^.{13}//' > files.txt
while read line; do git rm --cached "$line"; done < files.txt
while read line; do git add "$line"; done < files.txt
git add .gitattributes
rm files.txt
git lfs ls-files
rm -rf .git/lfs
git commit -m "unlfs"

文档信息