git config --system vs git config --global

3 points
Created by:

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 all operating system,

--global sets/gets configurations for logged in user account in the operating system.

From git-config documentation:

--systemFor writing options: write to system-wide $(prefix)/etc/gitconfig rather than the repository .git/config.

For writing options: write to global ~/.gitconfig file rather than the repository .git/config, write to $XDG_CONFIG_HOME/git/config file if this file exists and the ~/.gitconfig file doesn’t.

For reading options: read only from global ~/.gitconfig and from $XDG_CONFIG_HOME/git/config rather than from all available files.

Read more

  1. - official git-config documentation
Native Advertising
50 000 ad impressions - 449$
Get your tech brand or product in front of software developers.
For more information contact us:
Red dot
Dirask - friendly IT community for everyone.

❤️💻 🙂