Skip to main content

Harshal V. LADHE

Rewriting Git History with filter-branch

Using git filter-branch to rewrite commits in bulk — metadata filters, ref ranges, and when `git filter-repo` is the better tool.

Content tagged filter-branch

  • Snippet:git fix-dates: Fix GitHub Commit Dates After a Rebase

    Reset committer dates to author dates, then safely force-push.
    A git fix-dates command that resets committer dates to author dates after a rebase or amend, keeps merges intact, and force-pushes safely.
    Published at:
    Categories:Git
    Estimated reading time:5 min read