Hexo如何删除git commit历史记录 Posted on 2021-02-26 Edited on 2021-05-01 In problems Views: Valine: 有时博客发布之后,会对博客内容再进行修改,如果不想要别人看到 Hexo 博客的修改历史,只保留最后的版本,那我们可以把以前的 git commit 历史记录清理掉,这样还可以减少占用的 Pages 空间。操作步骤如下: 删除博客根目录下的 .deploy_git 文件夹。为防意外删前最好备份一下,git commit 历史记录就保存在这个文件夹 在 Git Bash 或终端中执行命令: 1hexo clean 在 Git Bash 或终端中执行命令: 1hexo d -g Post author: 安小琪 Post link: https://npfs06.top/2021/02/26/Hexo如何删除git-commit历史记录/ Copyright Notice: All articles in this blog are licensed under BY-NC-SA unless stating additionally.