Skip to content

Instantly share code, notes, and snippets.

@Eczbek
Created September 17, 2022 14:04
Show Gist options
  • Save Eczbek/966468c974904c7560fe103d0118155d to your computer and use it in GitHub Desktop.
Save Eczbek/966468c974904c7560fe103d0118155d to your computer and use it in GitHub Desktop.
git rebase but preserve timestamps
git -c rebase.instructionFormat='%s%nexec GIT_COMMITTER_DATE="%cD" git commit --amend --no-edit' rebase -i --root
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment