Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
# This script nukes the author (identity and time) of all commits since the
# given rev. This is useful if you want to disguise the true time when you
# wrote the commits, as a normal rebase will only reset the committer identity
# and time.
GIT_EDITOR="sed -i '' -e 's/pick/edit/g'" git rebase -i $1
while true; do
GIT_EDITOR=true git commit --amend --reset-author
git rebase --continue || exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment