Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save floehopper/0feb6cf39de784a511407044eb7c305a to your computer and use it in GitHub Desktop.
Save floehopper/0feb6cf39de784a511407044eb7c305a to your computer and use it in GitHub Desktop.
Update git author-date and committer-date to current time with 1 second delay between commits
FILTER_BRANCH_SQUELCH_WARNING=1 git filter-branch --env-filter 'export GIT_COMMITTER_DATE="$(date)"; export GIT_AUTHOR_DATE="$(date)"; sleep 1' master..HEAD
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment