码迷,mamicode.com
首页 > Web开发 > 详细

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

时间:2018-07-15 21:20:34      阅读:296      评论:0      收藏:0      [点我收藏+]

标签:后缀   origin   后缀名   git   commit   push   hub   需要   exe   

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

 

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

标签:后缀   origin   后缀名   git   commit   push   hub   需要   exe   

原文地址:https://www.cnblogs.com/qjuly/p/9314598.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!