Last active
December 14, 2015 08:59
-
-
Save poizan42/5061991 to your computer and use it in GitHub Desktop.
Fix all git committer dates to author 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
# Fix all git committer dates to author dates: | |
git filter-branch --env-filter \ | |
'export GIT_COMMITTER_DATE="$(git show --pretty=fuller $GIT_COMMIT | grep "AuthorDate:" | sed -re "s/^AuthorDate:\s+(.*)$/\\1/")"' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment