Created
July 3, 2015 16:59
-
-
Save ymxmore/0580e76921d116c2c160 to your computer and use it in GitHub Desktop.
Git コミッターのメールアドレスなどを無条件で過去のものも全て変更 (要force push)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 現在のブランチの設定を変更 | |
| git config --local user.name <name> | |
| git config --local user.email <email> | |
| # 過去のものを全てまとめて変更 (要force push) | |
| git filter-branch -f \ | |
| --env-filter \ | |
| "GIT_AUTHOR_NAME='<name>'; GIT_AUTHOR_EMAIL='<email>'; GIT_COMMITTER_NAME='<name>'; GIT_COMMITTER_EMAIL='<email>';" \ | |
| HEAD |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment