git cloneした後git commitできない

git cloneしたプロジェクトを編集してgit commitしようとしたらエラー。

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: empty ident name (for <>) not allowed

git様に「お前誰やねん」と言われてしまいました。「教えてくれ」って言うてるのでgitに自分の情報を登録しましょう。

gitに自分の情報を登録

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

これで登録ができるようなので、自分のメールアドレスと名前をコマンドから登録します。

コミットできた

git commit

問題なくコミットができました。

参考にしたサイト様

[Please tell me who you are.] git commitできない時の対処方法 - Qiita