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

 

posted @ 2018-07-15 19:36  珊迪·奇克斯  阅读(1038)  评论(0编辑  收藏  举报