Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ihsansatriawan/fad6960505a94a8620bac620ee26dae3 to your computer and use it in GitHub Desktop.
Save ihsansatriawan/fad6960505a94a8620bac620ee26dae3 to your computer and use it in GitHub Desktop.
Change the author of a specific commit (git)
git filter-branch -f --env-filter 'if [[ "$GIT_COMMIT" = "119900cd7054c64f2b8e4774e59afbfc39a28e73" ]]; then export GIT_COMMITTER_NAME="Lee Treveil" GIT_AUTHOR_NAME="Lee Treveil" GIT_COMMITTER_EMAIL="leetreveil@gmail.com" GIT_AUTHOR_EMAIL="leetreveil@gmail.com"; fi' HEAD
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment