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

Question about include feature in .gitconfig

From
SKShouichi KAMIYA <shouichi.kamiya@gmail.com>
Date
Apr 4, 2012, 21:09 UTC
Message-ID
<CALOHgxG2q_6EN5HFs=btX2hF4jC7AaJuMu=2AqbCeZBD+wNj3w@mail.gmail.com>
Hello git users and developers,

I have a question about "include" feature in config file. In .gitconfig I included .my_super_secret_file like below.

# .gitconfig
[include]
    path = .my_super_secret_file
# .my_super_secret_file
[github]
    password = foobar

Now, my question is return value of "git config --global github.password". I expect it to return foobar but it returns nothing. Is this behavior expected?

Cheers! Shouichi

-- 
Shouichi KAMIYA
Next: Jeff King
Message 1 of 2 in “Question about include feature in .gitconfig”
  1. Shouichi KAMIYAApr 4, 2012
  2. Jeff KingApr 4, 2012

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.