Skip to content

Instantly share code, notes, and snippets.

@fwindpeak
Last active June 26, 2024 07:10
Show Gist options
  • Select an option

  • Save fwindpeak/b1fcbae4fd5d77e6f92cec840788a1ef to your computer and use it in GitHub Desktop.

Select an option

Save fwindpeak/b1fcbae4fd5d77e6f92cec840788a1ef to your computer and use it in GitHub Desktop.
git change history author name and email
#!/bin/bash
git filter-repo --commit-callback '
if commit.author_name == b"name1" or commit.author_name == b"name1" or commit.author_email == b"name1@google.com":
commit.author_name = b"fwindpeak"
commit.author_email = b"fwindpeak@gmail.com"
' --force
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment