web関連

【git】git commitしようと思ったら「Please tell me who you are.」というエラー

gitbashインストールしたての時にcommitしようとしたら「Please tell me who you are.(誰だお前は)」ってエラー出た
なので、名前とメールアドレスを登録した時の話

エラー内容

メールアドレスと名前を教えてくれという内容

Author identity unknown

*** Please tell me who you are.

Run

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

to set your account's default identity.
Omit --global to set the identity only in this repository.

fatal: unable to auto-detect email address (got 'ユーザー名@コンピューター名.(none)')

メールアドレスと名前を登録すれば解決

以下の「メールアドレス」と「名前」を書き換えればok
※名前は当然英語(日本語でいけるのかは知らない)

git config --global user.email メールアドレス
git config --global user.name 名前

Leave a Comment

入力エリアすべてが必須項目です。メールアドレスが公開されることはありません。

内容をご確認の上、送信してください。