Skip to content

Instantly share code, notes, and snippets.

@poizan42
Last active December 14, 2015 08:59
Show Gist options
  • Save poizan42/5061991 to your computer and use it in GitHub Desktop.
Save poizan42/5061991 to your computer and use it in GitHub Desktop.
Fix all git committer dates to author dates
# 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