Created
January 2, 2023 00:30
-
-
Save sakkke/b216d9bd01f3b0104f1ade17cff4c44e to your computer and use it in GitHub Desktop.
One-liner of editing author and committer date
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 commit --amend --date "$(date --date="$(git show --format=%ai --no-patch HEAD) 2 minutes ago" '+%Y/%m/%d %H:%M:%S %z')" --no-edit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment