Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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