Skip to content

Instantly share code, notes, and snippets.

@gingerbeardman
Last active August 21, 2020 09:29
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 gingerbeardman/bae2f1cdbf7a8176f9f0b85ca882e7cc to your computer and use it in GitHub Desktop.
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
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