git filter-branch --env-filter ‘export GIT_COMMITTER_DATE="$GIT_AUTHOR_DATE"‘
filter-branch
lets you rewrite your git history. It can apply transformations to each commit or filter out commits based on certain criteria. See git filter-branch --help
for a comprehensive description and usage instructions.
--env-filter
allows you to set the environment variables that are present during the creation of the new history. It is evaluated for each commit separately.
原文:https://www.cnblogs.com/chucklu/p/10921684.html