---
id: 20260925-T0-14
title: "commit-rewriter 0.2发布：支持非默认分支重写"
title_en: "commit-rewriter 0.2 Adds Support for Non-Default Branches"
url: https://ai.daily.yangsir.net/daily/20260925-T0-14
issue_date: 2026-09-25
publish_date: 2026-09-24T20:06:53.000Z
category: release
source_name: "Simon Willison"
source_url: https://simonwillison.net/2026/Sep/24/commit-rewriter/
---

# commit-rewriter 0.2发布：支持非默认分支重写

Simon Willison发布commit-rewriter 0.2版本。此次更新的核心变化是支持对非默认分支进行操作，用户可以通过uvx commit-rewriter --branch other命令指定其他分支运行。此前该工具仅支持默认分支，新版本解决了多分支开发场景下的使用限制。对使用git进行多分支协作的开发者来说，现在可以用该工具重写任意分支的commit记录。

## English Version

**commit-rewriter 0.2 Adds Support for Non-Default Branches**

Simon Willison released commit-rewriter 0.2. The key change is support for branches other than the default branch, allowing users to run the tool against another branch via uvx commit-rewriter --branch other. Previously limited to the default branch, the update addresses usage constraints in multi-branch development workflows. Developers working with multiple git branches can now rewrite commit history on any branch.

---

**来源**：[Simon Willison](https://simonwillison.net/2026/Sep/24/commit-rewriter/)

**详情页**：https://ai.daily.yangsir.net/daily/20260925-T0-14

---

*智语观潮 · Daily — https://ai.daily.yangsir.net/llms.txt*