Setup and Configuration Commands
git config
Description
The git config
command is used to configure Git settings on a global or local project level. It allows to set user preferences and customize Git's behavior.
Usage
git config
can be used to set, get, and list configuration variables that control aspects of Git’s operation and look. These variables can be stored at three different levels:
System Level: Applies to every user on the system and all their repositories.
Global Level: Applies to the current user and all their repositories.
Local Level: Applies to the repository in the current working directory. This is the highest priority and overrides the same variables at the system or global level.
Basic Commands
Setting Configuration Variables
Getting Configuration Variables
Listing Configuration Variables
Unsetting Configuration Variables
Common Configuration Options
Last updated
Was this helpful?