Skip to content

Instantly share code, notes, and snippets.

@samdark
Created September 26, 2011 11:57
Show Gist options
  • Save samdark/1242081 to your computer and use it in GitHub Desktop.
Save samdark/1242081 to your computer and use it in GitHub Desktop.
Git: change committer info for all commits in a branch
git filter-branch --commit-filter '
if [ "$GIT_COMMITTER_NAME" = "Alex" ];
then
GIT_COMMITTER_NAME="Alexander Makarov";
GIT_AUTHOR_NAME="Alexander Makarov";
GIT_COMMITTER_EMAIL="sam@rmcreative.ru";
GIT_AUTHOR_EMAIL="sam@rmcreative.ru";
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