jrobinsonc
3/12/2013 - 6:43 PM

Git tip: Renombrar usuario de uno o varios commits.

Git tip: Renombrar usuario de uno o varios commits.

git filter-branch --commit-filter '
if [ "$GIT_COMMITTER_NAME" = "<Old Name>" ];
then
  GIT_COMMITTER_NAME="<New Name>";
  GIT_AUTHOR_NAME="<New Name>";
  GIT_COMMITTER_EMAIL="<New Email>";
  GIT_AUTHOR_EMAIL="<New Email>";
  git commit-tree "$@";
else
  git commit-tree "$@";
fi' HEAD