如何在命令行中使用 `hexo deploy` 时编辑提交信息

How to edit commit message when `hexo deploy` in command line

最近我开始使用 hexo 和 github 写博客。

我知道当我在终端上 hexo deploy 时,public 文件夹中的文件会转到我为部署配置的 github 存储库。

我还发现 _config.yml 中设置了默认提交消息,如 Site updated: {{ now('YYYY-MM-DD HH:mm:ss') }}

但我想用交互式会话编写新的提交消息,就像我 git commit 一样,而不是每次部署博客时都更改配置文件。 我该怎么做?

使用

hexo deploy -m "message".