Skip to content

Instantly share code, notes, and snippets.

@pohzipohzi
Last active March 27, 2021 20:06
Show Gist options
  • Save pohzipohzi/0c4371e36fa1dcc5b033b43f6c46584a to your computer and use it in GitHub Desktop.
Save pohzipohzi/0c4371e36fa1dcc5b033b43f6c46584a to your computer and use it in GitHub Desktop.
reset git history author names
git rebase -i --root
# change verbs for relevant commits to `edit`
while [ $? -eq 0 ]; do git commit --amend --reset-author --no-edit --allow-empty --date="$(git log -n 1 --format=%ad)" && git rebase --continue; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment