git如何上传大文件,突破大小限制

Github中单个文件的大小限制是100MB,为了能突破这个限制,我们需要使用Git Large File Storage这个工具,

git lfs install

git lfs track "*.exe" /* .exe 可以替换成你要上传的后缀名 如.pdf格式的*/

git add .gitattributes

git commit -m "Updated the attributes"

git push origin master

git add my_large_file.exe  /* 上传你打算要上传的大文件*/

git lfs ls-files

git commit -m "Add the large file"

git push origin master
原文地址:https://www.cnblogs.com/qjuly/p/9314598.html