前提1
gitを使い始めようと思い,git for windows をダウンロードして適当なフォルダでローカルレポジトリを作成してコミットしようとすると,次のエラーが表示されました。
エラーメッセージ
*** 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
前提2
指示通りにメールアドレスと名前の部分を変えて,メッセージの git config のコードを打ち込むと,次のエラーが表示されて,変更することができませんでした。
エラーメッセージ2
C:~/git config --global user.email "you@example.com" error: could not lock config file C:home/.gitconfig: No such file or directory
質問したい内容
なぜこのエラーが出てしまうのか,解決策を教えてください。pcはwindowsを用いています。
補足
- git は、コマンドプロンプトから使用しています。
- echo %HOME% を実行した結果,C:\home と表示されました。