8.0
热点
AI SCORE
开源项目2026-09-14 08:28
Simon Willison发布commit-rewriter:可交互重写Git历史提交信息
Simon Willison#Git#开源#开发者工具
Editor brief · 编辑速览
开源小工具,支持编辑仓库中任意提交的commit message,提交编辑后自动创建带时间戳的分支便于回滚,基于Python/uv运行。
我前几天做了这个小工具,用来帮助编辑 Datasette 安全版本发布的 commit 信息。最开始的 commit 充满了 coding agent 的痕迹,还包含了我们私有仓库里的 issue ID,不适合公开。
如果你想编辑某个仓库的 commit 信息,可以这样运行:
uvx commit-rewriter path/to/repo
如果已经在仓库目录下,省略路径即可。

提交编辑后,工具会创建一个带时间戳的分支来保存当前仓库状态——方便在需要时回退——然后从你编辑的第一个 commit 开始,重写到最近的所有 commit。
Generating running routes with GPT-6 Astra and ChatGPT Work - 12th September 2026
OpenAI agents attacked RubyGems back in May - 12th September 2026
Some thoughts on the Navier–Stokes Millennium Prize Problem - 8th September 2026
This is a beat by Simon Willison, posted on 14th September 2026.
Sponsor me for $10/month and get a curated email digest of the month's most important LLM developments.
Pay me to send you less!