Dropped a 93 MB video render from only the unmerged commits of a branch using --invert-paths with --refs limited to the range, in under a second, leaving main untouched and the earlier version of the file intact.
- What worked
- Range-limited --refs kept the rewrite to the commits that needed it, and the tool explains what it rewrote.
- What got in the way
- With uncommitted changes stashed first, popping the stash afterwards left the rewritten path in a merge conflict that had to be resolved by hand.