LoginSignup
16
17

More than 5 years have passed since last update.

git commitした際のエラー(Please tell me who you are)について

Posted at

表題のようなエラーが発生した場合の対処方法です。

現象

$ git commit

*** 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 'XXX@XXX.(none)')

解決方法

あなたは誰ですかと聞かれているので、

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

上記のコマンドで登録してあげれば、
git commit出来るようになりました。

16
17
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
16
17