Skip to content

Instantly share code, notes, and snippets.

@Coordinate-Cat
Last active November 7, 2021 03:39
Show Gist options
  • Save Coordinate-Cat/ecaeb2e605f995afc1de7b21afe1641f to your computer and use it in GitHub Desktop.
Save Coordinate-Cat/ecaeb2e605f995afc1de7b21afe1641f to your computer and use it in GitHub Desktop.
1.normal commit
2.Use `commit -amend` to specify a date in the past.
git commit --amend --date="Sun Nov 1 00:00:00 2021 +0900"
3.vim
ZZ
4.Use `GIT_COMMITTER_DATE` to specify a past date and change the `COMMITTER` commit date as well.
GIT_COMMITTER_DATE='Sun Nov 1 00:00:00 2021 +0900' git commit --amend
5.vim
ZZ
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment