IchHabRecht icon

[GIT] Change commiter name

IchHabRecht | PRO | 02/28/12 05:34:27 PM UTC | 0 ⭐ | 448 👁️ | Never ⏰ | []
text |

290 B

|

None

|

0 👍

/

0 👎

git filter-branch --commit-filter '
	if [ "$GIT_COMMITTER_NAME" = "unknown" ];
	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

Comments

  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎