Git致命的:メールアドレスを自動検出できません



Git Fatal Unable Auto Detect Email Address



チュートリアルの指示に従ってください。

Gitをインストールするときに、ユーザー名とパスワードを定義する必要があります。忘れた場合は、リポジトリをリセットしてリセットすることができます。

私の解決策:



1. Delete the local warehouse 2, configure the username and password git config --global user.name 'follow' git config --global user.email 'root@xxxxx' 3. Recreate the local repository and edit the submission file: mkdir learngit cd learngit git init vi readme.txt git add readme.txt git commit -m 'add a file'

もちろん、この方法では問題は解決しません。具体的な理由は明確ではありませんが、一時的に問題は解決しました。さらに検討した後、適切な解決策を検討します。