Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| git_config [2019/02/18 09:42] – rpjday | git_config [2019/02/18 09:57] (current) – [Configuration sections and keys] rpjday | ||
|---|---|---|---|
| Line 96: | Line 96: | ||
| ==== ~/ | ==== ~/ | ||
| - | Per-user | + | Per-user: |
| < | < | ||
| Line 136: | Line 136: | ||
| </ | </ | ||
| - | NOTE: If you don't specify which of the three levels you want, the operation defaults to '' | + | NOTE: If you don't specify which of the three levels you want, the operation defaults to '' |
| - | + | ||
| - | ===== Setting your configuration ===== | + | |
| - | + | ||
| - | ==== Global configuration ==== | + | |
| - | + | ||
| - | Setting globally (in personal '' | + | |
| - | + | ||
| - | < | + | |
| - | $ git config --global user.name " | + | |
| - | $ git config --global user.email " | + | |
| - | $ git config --global color.ui false | + | |
| - | </ | + | |
| - | + | ||
| - | ==== Local configuration ==== | + | |
| - | + | ||
| - | Setting locally (in repo's '' | + | |
| - | + | ||
| - | < | + | |
| - | $ git config [--local] gui.wmstate normal | + | |
| - | </ | + | |
| ===== Listing config settings ===== | ===== Listing config settings ===== | ||
| Line 207: | Line 187: | ||
| ===== Overriding configuration settings ===== | ===== Overriding configuration settings ===== | ||
| - | ==== One-time config override with -c ==== | ||
| - | < | ||
| - | $ git -c user.name=" | ||
| - | </ | ||
| ==== Environment variables ==== | ==== Environment variables ==== | ||
| - | As an example, '' | + | Most Git commands support environment variables for overriding configuration settings. |
| * '' | * '' | ||
| Line 234: | Line 210: | ||
| </ | </ | ||
| - | ===== Configuration sections | + | ==== One-time config override with -c ==== |
| + | |||
| + | If you need a one-time-only override of some config setting, most Git commands support the " | ||
| + | |||
| + | < | ||
| + | $ git -c user.name=" | ||
| + | </ | ||
| + | ===== Sections | ||
| Format of ''< | Format of ''< | ||