Skip to content

Instantly share code, notes, and snippets.

@oshiro-kazuma
Last active July 31, 2019 23:48
Show Gist options
  • Save oshiro-kazuma/793c4dae38633f1dbbed091b4acdf865 to your computer and use it in GitHub Desktop.
Save oshiro-kazuma/793c4dae38633f1dbbed091b4acdf865 to your computer and use it in GitHub Desktop.
commiter author書き換え
# 2つ前のコミットまで書き換える
git filter-branch -f --env-filter "GIT_AUTHOR_NAME='oshiro-kazuma'; \
GIT_AUTHOR_EMAIL='kazuma.ooshiro@gmail.com'; \
GIT_COMMITTER_NAME='oshiro-kazuma'; \
GIT_COMMITTER_EMAIL='kazuma.ooshiro@gmail.com';" HEAD^^..HEAD
# 確認
git log --pretty=full
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment