会社アカウントのGitlab(Github)の特定リポジトリを自宅PCで作業してコミットしたときに、コミット履歴を会社アカウント名で表示させる方法
nameとe-mailを変更
「git config local」のデータを変更すると、その特定リポジトリのみアカウントが変わる
変更箇所を確認
command
$ git config --local --list
- user.name
- user.email
上記の設定を会社アカウントに変更する
設定
command
$ git config --local user.name hoge
$ git config --local user.email fuga@foo.bar
下記に変わっていれば設定完了
command
$ git config --local --list
user.name=hoge
user.email=fuga@foo.bar