Top community members
All Wiki Articles Create Wiki Article

Welcome to Dirask IT community! ❤ 💻
We are community that shares solutions with each other.

If you think you have something to add here.

you are welcome with your fresh ideas - List Articles

git config --system vs git config --global

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

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

From git-config documentation:

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

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. https://git-scm.com/docs/git-config - official git-config documentation
0 contributions

Checkout latest Findings & News:

Checkout latest questions:

Checkout latest wiki articles:

Hey 👋
Would you like to know what we do?
  • Dirask is IT community, where we share coding knowledge and help each other to solve coding problems.
  • We welcome everyone,
    no matter what the experience,
    no matter how basic the question is,
    this community will help you.
Read more