私はGITの公式ガイドに従っていますが、実際には2.2.6段落「変更のコミット」にいます。以前は、セクション1.5.1「ID」で次のようなコマンドの入力を求められました。
git config --global user.name "John Doe"
--globalオプションは必要ないので、見逃しました。これで、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.
しかし、-globalオプションを入力したくないのですが、別の方法がありますか?