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

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

From
Felipe Contreras <felipe.contreras@gmail.com>
Date
Mar 22, 2009, 18:05 UTC
Message-ID
<1237745121-6325-8-git-send-email-felipe.contreras@gmail.com>
In-Reply-To
<1237745121-6325-7-git-send-email-felipe.contreras@gmail.com>
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
---
 Documentation/user-manual.txt |   34 ++++++++++++++++++++++++++++++++++
 1 files changed, 34 insertions(+), 0 deletions(-)
diff --git a/Documentation/user-manual.txt b/Documentation/user-manual.txt
index 3278aa7..b7678aa 100644
--- a/Documentation/user-manual.txt
+++ b/Documentation/user-manual.txt
@@ -40,6 +40,40 @@ without any explanation.
 Finally, see <<todo>> for ways that you can help make this manual more
 complete.
 
+[[getting-started]]
+Getting started
+=============
+
+You can skip this section safely, however, configuring git at an early stage
+would probably make your overall experience with it more pleasant. Also many
+parts on this manual would be easier to grasp.
+
+Git's configuration is distributed on different locations: 'system', 'global', and
+'repository'. Variables are stored in the form of 'foo.bar', and the precedence
+order is 'repository' > 'global' > 'system'.
+
+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.
+
+You can take a look and manually modify the configuration with the `--edit`
+option (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.1.352.gae594
Previous: Felipe ContrerasNext: Felipe Contreras
Message 28 of 40 in “user-manual: style improvements”
  1. 0/8 user-manual: style improvementsFelipe Contreras, Mar 22, 2009
  2. 1/8 user-manual: remove some git-foo usageFelipe Contreras, Mar 22, 2009
  3. 2/8 docbook: improve css styleFelipe Contreras, Mar 22, 2009
  4. 3/8 docbook: radical style changeFelipe Contreras, Mar 22, 2009
  5. Jeff KingMar 23, 2009
  6. Felipe ContrerasMar 23, 2009
  7. Jeff KingMar 23, 2009
  8. Felipe ContrerasMar 23, 2009
  9. Michael J GruberMar 23, 2009
  10. Felipe ContrerasMar 24, 2009
  11. Junio C HamanoMar 24, 2009
  12. Felipe ContrerasMar 24, 2009
  13. Jeff KingMar 24, 2009
  14. Felipe ContrerasMar 24, 2009
  15. Jeff KingMar 24, 2009
  16. Felipe ContrerasMar 24, 2009
  17. Michael J GruberMar 24, 2009
  18. Felipe ContrerasMar 24, 2009
  19. Jeff KingMar 24, 2009
  20. Michael J GruberMar 24, 2009
  21. Felipe ContrerasMar 24, 2009
  22. Felipe ContrerasMar 24, 2009
  23. Jeff KingMar 24, 2009
  24. Jeff KingMar 23, 2009
  25. Felipe ContrerasMar 23, 2009
  26. 5/8 user-manual: use 'fast-forward' instead of 'fast forward'Felipe Contreras, Mar 22, 2009
  27. 6/8 user-manual: use SHA-1 instead of SHA1 or sha1Felipe Contreras, Mar 22, 2009
  28. 7/8 user-manual: add global config sectionFelipe Contreras, Mar 22, 2009
  29. 8/8 user-manual: simplify the user configurationFelipe Contreras, Mar 22, 2009
  30. Wincent ColaiutaMar 22, 2009
  31. Felipe ContrerasMar 22, 2009
  32. Junio C HamanoMar 23, 2009
  33. Felipe ContrerasMar 23, 2009
  34. Wincent ColaiutaMar 23, 2009
  35. Felipe ContrerasMar 23, 2009
  36. Wincent ColaiutaMar 23, 2009
  37. Felipe ContrerasMar 24, 2009
  38. J. Bruce FieldsMar 24, 2009
  39. Felipe ContrerasMar 24, 2009
  40. J. Bruce FieldsMar 24, 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.