Skip to content

Instantly share code, notes, and snippets.

@Alex7k
Alex7k / change-author-all-commits.sh
Last active January 20, 2026 10:52
change author of all commits in git repository
# sudo apt install -y git-filter-repos
# this does not affect commit dates, but it will change hashes and deviate history
git filter-repo --commit-callback '
commit.author_name = b"john.doe"
commit.author_email = b"john.doe@example.com"
commit.committer_name = b"john.doe"
commit.committer_email = b"john.doe@example.com"
'