How do I get the real config value in Git?

It seems that git config only returns value that I explicitly set and doesn’t aware of the default values. For example when I run git config commit.status it outputs nothing. helps but doesn’t list all of the default values.

  • Correcting old merge mess in Git
  • git - handling many similar-yet-slightly-different applications?
  • SSL works with browser, wget, and curl, but fails with git
  • CVS style diffs in git
  • Git: try to diff with old commit
  • GIT Sourcetree existing files show up as new (case sensitive in windows)
  • Merging 2 branches together in GIT
  • Git Deploy PHP App to MULTIPLE EC2 Nodes
  • How can I commit specific directory to a different than a working branch on git?
  • SSH key stop working on MAC OS Sierra 10.12.3 in source tree
  • Can't commit from git plugin in IntelliJ IDEA
  • Clean history : remove delete actions and ignore some files
  • One Solution collect form web for “How do I get the real config value in Git?”

    Unfortunately, I don’t think this is possible. Perhaps someone more familiar with the git source code will correct me, but I think that the default values are typically hard-coded in the source files and overridden by the config variables. For example, the default for gc.pruneExpire is defined here and potentially overridden here when the configuration is checked. I don’t think there’s any mechanism for git config to get at that default value.

    Git Baby is a git and github fan, let's start git clone.