gitで過去のユーザ名とメールアドレスを書き換える

Dec 10, 2015   #git 

$ 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