Last active
August 21, 2020 09:29
-
-
Save gingerbeardman/bae2f1cdbf7a8176f9f0b85ca882e7cc to your computer and use it in GitHub Desktop.
Change date of last git commit, useful for making historically accurate repo from Time Machine backup files
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
d=$(date -v20y -v8m -v20d -v00H -v45M -v39S);GIT_COMMITTER_DATE="$d" git commit --amend --no-edit --date "$d" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment