接外包,有相关需求的可以联系我:Telegram | Email

Git 提交大文件失败!

该文章创建(更新)于01/29/2021,请注意文章的时效性!

缘由

最近在整理自己Github上面的package,最简单的方式是clone后删除上面的包,在本地整理后重新建立一个并push,但由于存在超过100M的限制传失败(如下图);

突破大文件限制,使用git-lfs(Git Large File Storage)

注意整个步骤的先后顺序!还有这GitHub只有1G的空间给大文件,如果超了应该是要付费购买空间的。

git init
git lfs install
git lfs track  "Your Big File"
git add .gitattributes
git commit -m "track big files using Git LFS"
git add .
git commit -m "submit other files"
git remote add origin 远程仓库链接
git lfs ls-files  # 用于检验是否添加上了
git push -u origin master

其它

Git使用教程 | https://www.emperinter.info/2018/12/03/github/


要不赞赏一下?

微信
支付宝
PayPal
Bitcoin

版权声明 | Copyright

除非特别说明,本博客所有作品均采用知识共享署名-非商业性使用-禁止演绎 4.0 国际许可协议进行许可。转载请注明转自-
https://www.emperinter.info/2021/01/29/git-lfs/


www.getmyollocard.com说道:

It is best to take part in a contest for among the finest blogs on the web. I will advocate this site!

emperinter说道:

The state of your website is 403,I can't thought you are a really man.

erotik说道:

Having read this I thought it was extremely enlightening. I appreciate you taking the time and effort to put this content together. I once again find myself personally spending way too much time both reading and leaving comments. But so what, it was still worthwhile!| Charo Dalt Portingale

emperinter说道:

I'm not sure you are a human after I get many spam comments!

emperinter留言

我相信你准备留下的内容是经过思考的!【勾选防爬虫,未勾选无法留言】

*

*



YouTube | B站

微信公众号

优惠码

阿里云国际版20美元
Vultr10美元
搬瓦工 | Bandwagon应该有折扣吧?
Just My SocksJMS9272283 【注意手动复制去跳转】
域名 | namesiloemperinter(1美元)
币安 币安