初めに
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
で情報をリセットしてください。
そこからもう一度登録しなおせば再度登録ができます。