Last active
November 7, 2021 03:39
-
-
Save Coordinate-Cat/ecaeb2e605f995afc1de7b21afe1641f to your computer and use it in GitHub Desktop.
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
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