Setting git committer equal to commit author
suggest changeThis rewrites history for commit1..commit2 (not including commit1) so the committer name, email, and date match the author:
git filter-branch -f --commit-filter \
'export GIT_COMMITTER_NAME=\"$GIT_AUTHOR_NAME\";
export GIT_COMMITTER_EMAIL=\"$GIT_AUTHOR_EMAIL\";
export GIT_COMMITTER_DATE=\"$GIT_AUTHOR_DATE\";
git commit-tree $@' \
-- commit1..commit2
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents