Quick Actions
git config
Description
Get and set repository or global options.
Command
git config
Examples
Set user name
git config --global user.name "John Doe"
Set user email
git config --global user.email "john@example.com"
List configurations
git config --list
Set local config
git config user.name "John Doe"
Parameters
Parameter | Type | Required | Description |
---|---|---|---|
--global |
string | No | Set global configuration |
--local |
string | No | Set local repository configuration |
--list |
string | No | List all configurations |
--unset |
string | No | Remove configuration |
Command Info
Category:
Configuration
Type:
Git
Views:
7
Status:
Active
Tags
config
settings
configuration