Not sure where "smcho" comes from, but the setting to set your name is user.name
:
git config --global user.name "Your Name"
You can set your e-mail address too:
git config --global user.email "name@domain.example"
I guess the reason it complains about the lack of a section is that the name of the parameter to set probably needs to be in two parts: section.parameter_name
(You can see the sections names within []
if you look in the configuration file, for example in .git/config
).
(None of this is specific to OSX as far as I'm aware.)
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…