How-toSelected

commit-rewriter 0.1

Why we picked it

This is a practical tool for developers who work with Git repositories, helping to clean up commit histories before publishing them.

I built commit-rewriter 0.1, a web app to help edit commit messages for Datasette security releases. The initial commits had coding agent cruft and private repository references, so they weren't fit for publication. The tool creates a timestamped branch before rewriting commits from the first edited one to the most recent.

Original · Simon Willison’s Weblog

Release: commit-rewriter 0.1 I built this little web app the other day to help edit the commit messages for the Datasette security releases . The initial commits were full of coding agent cruft and references to issue IDs from our private repository, so they weren't fit for publication. If you want to edit the commit messages for a repository you can run it like this: uvx commit-rewriter path/to/repo Omit the path if you are already in the directory for that repo. When you submit your edits the tool creates a timestamped branch of your current repo state - to allow you to revert if you need to - and then rewrites every commit from the first one you edited to the most recent. Tags: git , projects , python , ai-assisted-programming