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

NameTypeDescription
keystringConfiguration key.
valuestringNew value; omit to query.

Working Example

Example Snippetgit
git config --local user.name "ByteMind Learner"git config --local user.name
Git Reference