Advertisement
IchHabRecht

[GIT] Change commiter name

Feb 28th, 2012
248
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. git filter-branch --commit-filter '
  2. if [ "$GIT_COMMITTER_NAME" = "unknown" ];
  3. then
  4. GIT_COMMITTER_NAME="<New Name>";
  5. GIT_AUTHOR_NAME="<New Name>";
  6. GIT_COMMITTER_EMAIL="<New Email>";
  7. GIT_AUTHOR_EMAIL="<New Email>";
  8. git commit-tree "$@";
  9. else
  10. git commit-tree "$@";
  11. fi' HEAD
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement