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

[PATCH 6/7] user-manual: add global config section

From
Felipe Contreras <felipe.contreras@gmail.com>
Date
Apr 4, 2009, 09:38 UTC
Message-ID
<1238837909-3060-7-git-send-email-felipe.contreras@gmail.com>
In-Reply-To
<1238837909-3060-6-git-send-email-felipe.contreras@gmail.com>
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
---
 Documentation/user-manual.txt |   30 ++++++++++++++++++++++++++++++
 1 files changed, 30 insertions(+), 0 deletions(-)
diff --git a/Documentation/user-manual.txt b/Documentation/user-manual.txt
index 3278aa7..a3032c7 100644
--- a/Documentation/user-manual.txt
+++ b/Documentation/user-manual.txt
@@ -40,6 +40,36 @@ without any explanation.
 Finally, see <<todo>> for ways that you can help make this manual more
 complete.
 
+[[getting-started]]
+Getting started
+=============
+
+Git's configuration is distributed among different locations--this manual will
+only to deal with 'global' and 'repository' variables, where 'repository'
+variables take precedence over 'global' ones.
+
+You would probably want to start setting up something useful:
+------------------------------------------------
+$ git config --global color.ui auto
+------------------------------------------------
+
+This will make prettier the output of certain commands such as `git diff`, but
+that's not important; what is important here is that `color.ui` has been
+stored in the 'global' (for the user) configuration.
+
+View and manually modify the configuration with the `--edit`
+option (which will use '$EDITOR'):
+------------------------------------------------
+$ git config --global --edit
+[color]
+        ui = auto
+------------------------------------------------
+
+Or you can manually edit the file which is located in `~/.gitconfig`. Other
+locations are `/etc/gitconfig` (system), and `.git/config` (repository).
+
+Other git configurations will be covered in the rest of the manual, if you
+want to learn more look at linkgit:git-config[1] for details.
 
 [[repositories-and-branches]]
 Repositories and Branches
-- 
1.6.2.2.404.ge96f3
Previous: Felipe ContrerasNext: Felipe Contreras
Message 6 of 18 in “user-manual: general improvements”
  1. 0/7 user-manual: general improvementsFelipe Contreras, Apr 4, 2009
  2. 1/7 user-manual: remove some git-foo usageFelipe Contreras, Apr 4, 2009
  3. 2/7 docbook: improve css styleFelipe Contreras, Apr 4, 2009
  4. 4/7 user-manual: use 'fast-forward' instead of 'fast forward'Felipe Contreras, Apr 4, 2009
  5. 5/7 user-manual: use SHA-1 instead of SHA1 or sha1Felipe Contreras, Apr 4, 2009
  6. 6/7 user-manual: add global config sectionFelipe Contreras, Apr 4, 2009
  7. 7/7 user-manual: simplify the user configurationFelipe Contreras, Apr 4, 2009
  8. Jay SoffianApr 5, 2009
  9. Felipe ContrerasApr 5, 2009
  10. Jay SoffianApr 5, 2009
  11. Junio C HamanoApr 5, 2009
  12. Felipe ContrerasMay 1, 2009
  13. Junio C HamanoMay 1, 2009
  14. Felipe ContrerasMay 1, 2009
  15. Junio C HamanoMay 2, 2009
  16. Junio C HamanoApr 6, 2009
  17. Felipe ContrerasMay 1, 2009
  18. Junio C HamanoApr 6, 2009

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.