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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.





[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux