Skip to content

Instantly share code, notes, and snippets.

@ross-humphrey
Created September 3, 2019 08:09
Show Gist options
  • Save ross-humphrey/0202748030c9a9d2ae7efe35a9f90c9f to your computer and use it in GitHub Desktop.
Save ross-humphrey/0202748030c9a9d2ae7efe35a9f90c9f to your computer and use it in GitHub Desktop.
🐱 Changing historic commit times on GIT
git filter-branch --env-filter \
'if [ $GIT_COMMIT = 7e9f69cf5708ae32ac3f8f9211ee63b4efa7802e ]
then
export GIT_AUTHOR_DATE="Mon Sep 2 16:38:53 2019 -0000"
export GIT_COMMITTER_DATE="Mon Sep 2 17:01:01 2019 -0000"
fi'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment