git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: "git config get" returns "error: key does not contain a section: get"

From
KHKristoffer Haugsbakk <kristofferhaugsbakk@fastmail.com>
Date
Jun 5, 2025, 16:33 UTC
Message-ID
<d2829090-de29-466f-b17a-734c5e8bf59a@app.fastmail.com>
In-Reply-To
<MW3PR11MB47638E3211C195DC1C032DB9C36FA@MW3PR11MB4763.namprd11.prod.outlook.com>
On Thu, Jun 5, 2025, at 18:16, Scott Birl (Temple Univ) wrote:
> Hello all:
>
> Debian 12/bookworm -- git is already the newest version (1:2.39.5-0+deb12u2).
> Trying out examples from https://git-scm.com/docs/git-config.html#EXAMPLES
That looks like Git 2.39.0.
> [...]
> $ git config get core.filemode
>
> error: key does not contain a section: get
`git config get` is from Git 2.46.0.
I get the same error on 2.40.0.
You need `git config --get`. That’s the old syntax.
Previous: Scott Birl (Temple Univ)Next: Scott Birl (Temple Univ)
Message 2 of 3 in “"git config get" returns "error: key does not contain a section: get"”
  1. Scott Birl (Temple Univ)Jun 5, 2025
  2. Kristoffer HaugsbakkJun 5, 2025
  3. Scott Birl (Temple Univ)Jun 5, 2025

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.