Skip to content

Instantly share code, notes, and snippets.

@ymxmore
Created July 3, 2015 16:59
Show Gist options
  • Select an option

  • Save ymxmore/0580e76921d116c2c160 to your computer and use it in GitHub Desktop.

Select an option

Save ymxmore/0580e76921d116c2c160 to your computer and use it in GitHub Desktop.
Git コミッターのメールアドレスなどを無条件で過去のものも全て変更 (要force push)
# 現在のブランチの設定を変更
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