Skip to content

Instantly share code, notes, and snippets.

@strongant
Created June 7, 2023 16:15
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 strongant/690329684c319c75ce4a449345ba1739 to your computer and use it in GitHub Desktop.
Save strongant/690329684c319c75ce4a449345ba1739 to your computer and use it in GitHub Desktop.
reset-git-commit-time
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'
@strongant
Copy link
Author

git commit --amend --date "Thu, 07 Jun 2023 20:17:29 +0800" --no-edit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment