Gitにnameとemailを設定する。

nameとemailの設定をせずにcommitすると次のメッセージが表示されます。

下記、コマンドで設定しましょうと言われているんですね。

 

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

 

After doing this, you may fix the identity used for this commit with:

 

    git commit --amend --reset-author

 

 

"git commit --amend --reset-author"について、調べてみました。

commitログのユーザー情報を更新してくれるそうです。