Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1022433
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T11:27:55+00:00 2026-05-16T11:27:55+00:00

The Pragmatic Guide to GIT has the following Git uses both to calculate the

  • 0

The Pragmatic Guide to GIT has the following “Git uses both to calculate the commit ID—a SHA-111 hash—that identifies each commit.” in page 21.

And in page 22, I can use the following command to ‘Configure Git to know who you are’.

git config --global smcho "Your Name"

When I ran it, I got the following error message.

error: key does not contain a section: smcho

What’s wrong with this? I guess it has something to do with SHA-111 hash, but I don’t know how to get it to be used with git.

ADDED

I thought user.name is to be replaced my name, not a section/parameter structured name. After changing that it works OK.

git config --global user.name "Your Name"
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T11:27:56+00:00Added an answer on May 16, 2026 at 11:27 am

    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.)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

When I read Pragmatic Bookshelf books, it has the following format: http://img210.imageshack.us/img210/2965/screenshot20100717at121.png How can
I am going through Programming Ruby - a pragmatic programmers guide and have stumbled
I am studying the content of Programming Ruby- The Pragmatic Programmer's Guide but the
At what point does accessibility become non-pragmatic? and what is that shady gray area
I recall when I first read Pragmatic Programmer that they suggested using scripting languages
I am learning ruby from a book I got called The Pragmatic Programmers Guide
I'm following an example from Pragmatic Project Automation. I'm running on Windows 7 and
I am an ETL developer by profession that just started reading The Pragmatic Programmer
I am reading Programming Ruby 1.9 (3rd edition): The Pragmatic Programmers' Guide , and
Has anyone used the Pragmatic Programmers screencast series Coding in Objective-C 2.0 ? They

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.