多设备Hexo安装Butterfly主题里面博客search.xml过大导致GitHub推送失败的完整解决方案(含交互式清理脚本)
发表于|更新于
目录
- 1. 一、问题背景
- 2. 二、问题根源
- 3. 三、解决方案概览
- 4. 四、方案 A:彻底不要搜索(最简单)
- 5. 五、方案 B:保留搜索,只索引标题
- 6. 六、清理 Git 历史的正确顺序
- 7. 七、交互式清理脚本
- 8. 八、常见问题
- 8.1. Q1:git push 报 'origin' does not appear to be a git repository
- 8.2. Q2:git pull 报 no tracking information for the current branch
- 8.3. Q3:git push origin master 报 src refspec master does not match any
- 8.4. Q4:hexo 命令报 SyntaxError: Expected double-quoted property name in JSON
- 8.5. Q5:sitemap.xml 和 baidusitemap.xml 需要保留吗
- 9. 九、多设备、多站点的批量排查清单
- 10. 十、总结
- 11. 附:脚本获取