LoginSignup
3
3

More than 5 years have passed since last update.

過去の git author を書き換える

Posted at
$ git filter-branch --commit-filter '
if [ "$GIT_AUTHOR_EMAIL" = "hoge@example.com" ]; then
    GIT_AUTHOR_EMAIL="fuga@examplecom"
fi
git commit-tree "$@"
' HEAD
$ git push -f origin master

危険なので注意

3
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
3