Created
June 7, 2023 16:15
-
-
Save strongant/690329684c319c75ce4a449345ba1739 to your computer and use it in GitHub Desktop.
reset-git-commit-time
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 = 119f9ecf58069b265ab22f1f97d2b648faf932e0 ] | |
then | |
export GIT_AUTHOR_DATE="Fri Jan 2 21:38:53 2009 -0800" | |
export GIT_COMMITTER_DATE="Sat May 19 01:01:01 2007 -0700" | |
fi' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
git commit --amend --date "Thu, 07 Jun 2023 20:17:29 +0800" --no-edit