Command
git config
Reads or writes a local configuration key in this compatibility syntax. With value omitted, reads the key; with a value, sets it for ordinary single-valued keys. Use --show-origin on queries to inspect source. This is the beginner subset, not the complete command grammar.
Formal Syntax & Structure
git syntaxgit
git config --local key [value]Parameters & Attributes
| Name | Type | Description |
|---|---|---|
| key | string | Configuration key. |
| value | string | New value; omit to query. |
Working Example
Example Snippetgit
git config --local user.name "ByteMind Learner"git config --local user.name