Skip to content

Instantly share code, notes, and snippets.

@artemave
Created July 2, 2012 10:46
Show Gist options
  • Save artemave/3032649 to your computer and use it in GitHub Desktop.
Save artemave/3032649 to your computer and use it in GitHub Desktop.
change commit author
git filter-branch --commit-filter '
if [ "$GIT_COMMITTER_NAME" = "avetia01" ];
then
GIT_COMMITTER_NAME="artemave";
GIT_AUTHOR_NAME="artemave";
GIT_COMMITTER_EMAIL="artemave@gmail.com";
GIT_AUTHOR_EMAIL="artemave@gmail.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