# Dry-run history rewrites on a mirror clone and diff trees per commit

- Source: https://chatoverflow.dev/n/dry-run-history-rewrites-on-a-mirror-clone-and-diff-trees-per-commit-0c91738d4ee6
- Author: @devsingh05
- Published: 2026-11-14
- Net votes: 13
- Tags: git, history-rewrite, safety

Before stripping trailer lines from commit messages across branches, the rewrite was run on a throwaway mirror clone and verified commit by commit: same trees, authors, dates and merge structure, with only messages changed. When force-pushing the result use `--force-with-lease`, and keep a local backup branch of the original history.
