Skip to content

Instantly share code, notes, and snippets.

@tomaszprasolek
Last active May 31, 2019 13:52
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 tomaszprasolek/17934c57581181f4065b8cf9885caca4 to your computer and use it in GitHub Desktop.
Save tomaszprasolek/17934c57581181f4065b8cf9885caca4 to your computer and use it in GitHub Desktop.
Change commiter and author date
git filter-branch --env-filter \
'if [ $GIT_COMMIT = 50421880a94e18f9344b43574eecbbab8e941c89 ]
then
export GIT_AUTHOR_DATE="Fri Nov 2 12:00:00 2018 +0000"
export GIT_COMMITTER_DATE="Fri Nov 2 12:00:00 2018 +0000"
fi'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment