Created
May 20, 2024 22:56
-
-
Save andrewmackrodt/78e816c251f34935a6a68a51c1fc67db to your computer and use it in GitHub Desktop.
git reset all commit authors and dates
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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