0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

違うPCからGitでcommitしたい時の著者とアドレスの変更

Last updated at Posted at 2020-07-18

違うPCでcloneして作業後に、いつもの感じでcommitすると「ローカルの別人からのcommit」になってしまいます。草も生えません笑

そんな時は、commitする前に著者とメールアドレスの情報を変更する必要があります。

git config --local user.name [username]
git config --local user.email [email]

私の場合は、このような形で設定します。

git config --local user.name tetsu-upstr
git config --local user.email example@gmail.com

参考

Git の Commit Author と Commiter を変更する

0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?