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

[PATCH 2/2] git-config.txt: fix example

From
mhagger@alum.mit.edu <mhagger@alum.mit.edu>
Date
Aug 18, 2012, 17:32 UTC
Message-ID
<1345311130-20426-3-git-send-email-mhagger@alum.mit.edu>
In-Reply-To
<1345311130-20426-1-git-send-email-mhagger@alum.mit.edu>
From: Michael Haggerty <mhagger@alum.mit.edu>

The "--add" option is required to add a new value to a multivalued configuration entry.

Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
---
 Documentation/git-config.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Documentation/git-config.txt b/Documentation/git-config.txt
index 46775fe..584ef51 100644
--- a/Documentation/git-config.txt
+++ b/Documentation/git-config.txt
@@ -342,7 +342,7 @@ To actually match only values with an exclamation mark, you have to
 To add a new proxy, without altering any of the existing ones, use
 
 ------------
-% git config core.gitproxy '"proxy-command" for example.com'
+% git config --add core.gitproxy '"proxy-command" for example.com'
 ------------
 
 An example to use customized color from the configuration in your
-- 
1.7.11.3
Previous: Michael HaggertyNext: Junio C Hamano
Message 6 of 7 in “Fix two minor problems in the docs for git-config”
  1. 0/2 Fix two minor problems in the docs for git-configmhagger@alum.mit.edu, Aug 18, 2012
  2. 1/2 git-config.txt: properly escape quotation marks in examplemhagger@alum.mit.edu, Aug 18, 2012
  3. Junio C HamanoAug 18, 2012
  4. Junio C HamanoAug 18, 2012
  5. Michael HaggertyAug 19, 2012
  6. 2/2 git-config.txt: fix examplemhagger@alum.mit.edu, Aug 18, 2012
  7. Junio C HamanoAug 18, 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.