Skip to content

Instantly share code, notes, and snippets.

@coshx
coshx / history_rewrite.sh
Created January 12, 2009 02:14 — forked from tekkub/history_rewrite.sh
added email changing and fixed typo (COMITER)
#!/bin/sh
git filter-branch --env-filter '
an="$GIT_AUTHOR_NAME"
am="$GIT_AUTHOR_EMAIL"
cn="$GIT_COMMITTER_NAME"
cm="$GIT_COMMITTER_EMAIL"
if [ "$GIT_COMMITTER_EMAIL" = "your@email.to.match" ]