Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save andrewmackrodt/78e816c251f34935a6a68a51c1fc67db to your computer and use it in GitHub Desktop.
Save andrewmackrodt/78e816c251f34935a6a68a51c1fc67db to your computer and use it in GitHub Desktop.
git reset all commit authors and dates
git rebase --root --reset-author --exec 'export GIT_COMMITTER_DATE=$(git log --format="%aD" | head -n1); git commit --amend --no-edit --date="$GIT_COMMITTER_DATE"'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment