Skip to content

Instantly share code, notes, and snippets.

@drewdeponte
Created March 31, 2010 02:03
Show Gist options
  • Save drewdeponte/349840 to your computer and use it in GitHub Desktop.
Save drewdeponte/349840 to your computer and use it in GitHub Desktop.
git filter-branch --commit-filter '
if [ "$GIT_COMMITTER_NAME" = "convert-repo" ] || [ "$GIT_COMMITTER_NAME" = "some_other_name" ];
then
GIT_COMMITTER_NAME="Some Name Here";
GIT_AUTHOR_NAME="Some Name Here";
GIT_COMMITTER_EMAIL="<someemail@here.com>";
GIT_AUTHOR_EMAIL="<someemail@here.com>";
git commit-tree "$@";
else
git commit-tree "$@";
fi' HEAD;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment