🐙
Github config設定のメモ
PCを変えた時に毎回調べている、CommiterとAuthorの変更についてのメモ。
現在の設定は以下のコマンドで確認できる。
$ git config -l
グローバル設定
git config --global user.name example
git config --global user.email example@gmail.com
過去のコミットも変更する場合
git filter-branch -f --env-filter "GIT_AUTHOR_NAME='example'; GIT_AUTHOR_EMAIL='example@gmail.com'; GIT_COMMITTER_NAME='example'; GIT_COMMITTER_EMAIL='example@gmail.com';" HEAD
Discussion