gitで過去のユーザ名とメールアドレスを書き換える
🗓️ 2015-12-10
📑
Post
$ git filter-branch -f --commit-filter '
if [ "$GIT_AUTHOR_NAME" = "OLD NAME" ];
then
GIT_AUTHOR_NAME="NEW NAME"
GIT_AUTHOR_EMAIL="NEW EMAIL"
GIT_COMMITTER_NAME="NEW NAME"
GIT_COMMITTER_EMAIL="NEW EMAIL"
git commit-tree "$@"
else
git commit-tree "$@"
fi' HEAD
🏷️
#git