Skip to content

Instantly share code, notes, and snippets.

@shigwata
Created July 5, 2017 03:40
Show Gist options
  • Select an option

  • Save shigwata/85fe2dbc6b76c830c2fcf33a1d96d78d to your computer and use it in GitHub Desktop.

Select an option

Save shigwata/85fe2dbc6b76c830c2fcf33a1d96d78d to your computer and use it in GitHub Desktop.
gitの履歴からユーザ名とメールアドレスを変更する
$ git config --local user.name "your_name"
$ git config --local user.email [email protected]
$ git filter-branch -f --env-filter "GIT_AUTHOR_NAME='your_name'; GIT_AUTHOR_EMAIL='[email protected]'; GIT_COMMITTER_NAME='your_name'; GIT_COMMITTER_EMAIL='[email protected]';" HEAD
$ git push -f origin master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment