Skip to content

Latest commit

 

History

History
20 lines (17 loc) · 487 Bytes

git-xiu-gai-yi-ti-jiao-ji-lu-ti-jiao-zhe-xin-xi.md

File metadata and controls

20 lines (17 loc) · 487 Bytes
description
git修改已提交记录提交者信息

git修改已提交记录提交者信息

git filter-branch --env-filter '
if [ "$GIT_COMMITTER_EMAIL" = "[email protected]" ]; then
    export GIT_COMMITTER_NAME="New Name"
    export GIT_COMMITTER_EMAIL="[email protected]"
fi
if [ "$GIT_AUTHOR_EMAIL" = "[email protected]" ]; then
    export GIT_AUTHOR_NAME="New Name"
    export GIT_AUTHOR_EMAIL="[email protected]"
fi
' -- --all

git push -f