Skip to content

Instantly share code, notes, and snippets.

@suenot
Created January 11, 2025 07:45
Show Gist options
  • Save suenot/2004d66b05ec648a087b31cd38d9f287 to your computer and use it in GitHub Desktop.
Save suenot/2004d66b05ec648a087b31cd38d9f287 to your computer and use it in GitHub Desktop.

update all in local git

git filter-branch --force --env-filter '
if [ "$GIT_AUTHOR_NAME" = "Your Old Name" ]; then
    GIT_AUTHOR_NAME="Your New Name"
    GIT_AUTHOR_EMAIL="[email protected]"
    GIT_COMMITTER_NAME="Your New Name"
    GIT_COMMITTER_EMAIL="[email protected]"
fi
' --tag-name-filter cat -- --all

update all in remote git:

git push --force --all
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment