Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save AndroidPoet/2f7fefc8fe286a94cac11a2841ce9a24 to your computer and use it in GitHub Desktop.
Save AndroidPoet/2f7fefc8fe286a94cac11a2841ce9a24 to your computer and use it in GitHub Desktop.
Change author names on all the commits.
git filter-branch -f --env-filter "
GIT_AUTHOR_NAME='name'
GIT_AUTHOR_EMAIL='exmaple@gmail.com'
GIT_COMMITTER_NAME='name'
GIT_COMMITTER_EMAIL='exmaple@gmail.com'
" HEAD
git push --force --tags origin 'refs/heads/main'
# or
git push --force
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment