【Flutter】Gitへコミットする際にエラーが発生「git: fatal unable to auto-detect email address (got "some wrong email")」
事象
gitへコミットする際に、以下のエラーメッセージが表示され、コミットができない事象が発生した
git: fatal unable to auto-detect email address (got "some wrong email")
なお事前に下記のコマンドにてGitユーザ情報を登録した。
git config --global user.name "name"
git config --global user.email "email@domain.com"
前提
- Visual studio code にて開発
- プロジェクトの階層にて上記コマンドを実行
- コマンドに誤字はない
解決した方法
ディレクトリを一つ上に変え(プロジェクトが保存されている階層)、上記コマンドを実行することで解決した。
下記が実際に打ち込んだコマンド
cd ..
git config --global user.name "name"
git config --global user.email "email@domain.com"
cd <各々のプロジェクトの階層パス>
最後に
すべての問題がこれで解決するとは思わないが、困っているエンジニアが救われたらと思う。