EN
git config --system vs git config --global
3
points
In this short article we would like to explain the difference between git config --system
and git config --global
.
Quick answer:
--system
sets/gets configurations for entire operating system,
--global
sets/gets configurations for logged in user account in the operating system.
From git-config documentation:
Command | Description |
--system | For writing options: write to system-wide $(prefix)/etc/gitconfig rather than the repository .git/config . |
--global |
For writing options: write to global For reading options: read only from global |
Read more
- https://git-scm.com/docs/git-config - official git-config documentation