Skip to content

Instantly share code, notes, and snippets.

@brunobertechini
Created January 3, 2023 01:44
Show Gist options
  • Save brunobertechini/e2faa438d3b3184d26a6e7c6eac942ca to your computer and use it in GitHub Desktop.
Save brunobertechini/e2faa438d3b3184d26a6e7c6eac942ca to your computer and use it in GitHub Desktop.
#!/bin/sh
# Credits: http://stackoverflow.com/a/750191
# https://gist.github.com/bgromov/a1905055a8b9cdbeb1d2a87e70920cc8
git filter-branch -f --env-filter "
GIT_AUTHOR_NAME='John doe'
GIT_AUTHOR_EMAIL='john.doe@example.com'
GIT_COMMITTER_NAME='John doe'
GIT_COMMITTER_EMAIL='john.doe@example.com'
" HEAD
git push --force
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment