Skip to content

Instantly share code, notes, and snippets.

@Alex7k
Last active January 20, 2026 10:52
Show Gist options
  • Select an option

  • Save Alex7k/9cf55fdb06e3f1fdf86b4787e9e117f0 to your computer and use it in GitHub Desktop.

Select an option

Save Alex7k/9cf55fdb06e3f1fdf86b4787e9e117f0 to your computer and use it in GitHub Desktop.
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"
'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment