1
0

gitで勝手に認証されてしまった場合 Your name and email address were configured automatically based on your username and hostname.

Posted at

初めに

gitで勝手に認証されてしまった場合の対処方法を説明します

エラー文

Your name and email address were configured automatically based
on your username and hostname. Please check that they are accurate.
You can suppress this message by setting them explicitly:

    git config --global user.name "Your Name"
    git config --global user.email you@example.com

解決策

名前とメールアドレスの情報を書き換えていく
まずは名前

git config --global user.name "名前"

名前の部分はgitのユーザーネーム
次にメールアドレス

git config --global user.email ~

~はgitで登録しているメールアドレス

これらを書き換えた後でさらに変更したい場合は

git commit --amend --reset-author

で情報をリセットしてください。

そこからもう一度登録しなおせば再度登録ができます。

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