起きたこと
git commitを実行したときに
fatal: unable to auto-detect email address (got '自分のデバイス名.(none)')
と出た
対処方法
Gitがコミットに使用するメールアドレスと名前を設定する
以下コマンド
# グローバル設定(すべてのリポジトリに適用)
git config --global user.email "あなたのメールアドレス@example.com"
git config --global user.name "あなたの名前"
# ローカル設定(現在のリポジトリにのみ適用)
git config user.email "あなたのメールアドレス@example.com"
git config user.name "あなたの名前"