Skip to main content

commit-rewriter

PyPI Changelog Tests License

Local web app for editing local commit messages to a Git repository.

Usage

uvx commit-rewriter /path/to/repository

Or omit the path if the repository is your current working directory.

By default, the app edits the latest 100 commits reachable from the local branch checked out when the server starts. Use --branch to select a different local branch:

uvx commit-rewriter /path/to/repository --branch my-feature

Defaults to running on http://127.0.0.1:8000 - use -p/--port 8002 to run on a different port.

Edit multiple commit messages using the web UI. When you apply them the tool will first create a branch to back up the repository prior to making the changes.

Installation

pip install commit-rewriter
# or
uv tool install commit-rewriter

Screenshot

Screenshot of the commit-rewriter web interface. A heading reads commit-rewriter above the repository path and current branch and commit hash, with a short description of the tool. A toolbar shows a pending edits count with Discard drafts and Rewrite commit messages buttons, followed by a search box for message, author, or hash and an Edited only checkbox. A left sidebar titled Navigate commits lists recent commit messages with their short hashes. The main panel shows a card for each commit with its hash, author and timestamp, an editable text area containing the commit message, and a View full formatted diff toggle.

Contributing

To run the tests:

uv run pytest

To re-take the screenshot using shot-scraper:

shot-scraper multi shots.yml

Release files for commit-rewriter 0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for commit-rewriter 0.2
File Size Uploaded
commit_rewriter-0.2.tar.gz 18.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for commit-rewriter 0.2
File Interpreter ABI Platform
commit_rewriter-0.2-py3-none-any.whl Python 3 none any Details

Total release size: 31.1 kB

Release files / commit_rewriter-0.2.tar.gz

Download URL commit_rewriter-0.2.tar.gz
Size 18.0 kB
Tags Source
SHA-256 checksum
How to use checksums
f7d699aeab9866b3841d7e4df538d4392ed0fe8b1de53fc62081355354f583ae
BLAKE2b-256 checksum
How to use checksums
adf38fcd79a65756c3a3b3c19acb40d67c6827f77b1c737c642a9ddbf8ce8259
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 24, 2026.

Transparency log

Release files / commit_rewriter-0.2-py3-none-any.whl

Download URL commit_rewriter-0.2-py3-none-any.whl
Size 13.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6d9cde3cc4db2781802ef591a52b2e4d27684841413ea842ab1b34757cd23a5e
BLAKE2b-256 checksum
How to use checksums
fe8128e1393014f304120a628ca768c0c893ef1e5dc40bcb504410792cd22fd5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 24, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.2 This release

2 release files

0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page