Last active
July 7, 2023 15:40
-
-
Save ErickAgrazal/919ffbfe8da8f0362f6aaa62f5165cc0 to your computer and use it in GitHub Desktop.
Use git filter-branch with an env filter that sets GIT_AUTHOR_DATE and GIT_COMMITTER_DATE for the specific hash of the commit you're looking to fix.
This file contains 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
git filter-branch --env-filter \ | |
'if [ $GIT_COMMIT = b9230a8b64cbe283744d65b0e372616c0a9ac34c ] | |
then | |
export GIT_AUTHOR_DATE="Sat Jan 25 01:38:53 2009 -0500" | |
export GIT_COMMITTER_DATE="Sat Jan 25 21:01:01 2007 -0500" | |
fi' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment