Skip to content

Instantly share code, notes, and snippets.

@haruair
Created April 4, 2014 09:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save haruair/9971560 to your computer and use it in GitHub Desktop.
Save haruair/9971560 to your computer and use it in GitHub Desktop.
GIt commit name update
git filter-branch -f --commit-filter '
if [ "$GIT_COMMITTER_NAME" = "old-name" ];
then
GIT_COMMITTER_NAME="new-name";
GIT_AUTHOR_NAME="new-name";
GIT_COMMITTER_EMAIL="email@domain.name";
GIT_AUTHOR_EMAIL="email@domain.name";
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