zoukankan      html  css  js  c++  java
  • hexo 问题解决

    hexo 文件过大的的问题

        在git hexo仓库中有一个超过100MB的文件,并且你不小心Commit后,会出现如下报错
        remote: Resolving deltas: 100% (405/405), done.
        remote: error: GH001: Large files detected. You may want to try Git Large File Storage - https://git-lfs.github.com.
        remote: error: Trace: 09c8c1ad5d3478b3692c72197ee5a8c6e76e583e0b76a35add8ac329b445be02
        remote: error: See http://git.io/iEPt8g for more information.
        remote: error: File 2021/02/28/Excel/one.gif is 488.72 MB; this exceeds GitHub’s file size limit of 100.00 MB
    
    错误中提示2021/02/28/Excel/one.gif文件太大,超过100MB的限制,而无法提交,寻找了一下这个文件,发现已经被删除,但是commit中还是有此文件的提交记录。
    安装 git filter-repo
    
    使用pip安装
    pip install git-filter-repo
    
    执行清理shared/log/cron.log文件
    git gc:
    git filter-repo --invert-paths --path "shared/log/cron.log"
    
    删除.deploy_git文件
    重新提交
    
    hexo clean
    hexo g -d
    
    如果有来生,一个人去远行,看不同的风景,感受生命的活力。。。
  • 相关阅读:
    WPF资源字典使用
    忍住你的痛苦
    WPF附加属性
    一致性Hash算法详解
    登录注册
    REST
    资源访问
    参与Bean的生命周期
    sqlserver中查询横表变竖表的sql语句简析
    C#跨线程修改控件——从MSIL和汇编看Invoke, 多线程, 事件与事件委托
  • 原文地址:https://www.cnblogs.com/Frank99/p/15343522.html
Copyright © 2011-2022 走看看