Quidest?

Git configuration

ยท Lorenzo Drumond

git has one global configuration, and one local (per repo) configuration. They way to set or retrieve config values is via

1git config

you can store any value in the config, but only some will be used by git

 1git config --add --global webflyx.ceo "ThePrimeagen"
 2git config --add --global webflyx.cto "TheLaneagen"
 3git config --add --global webflyx.evaluation "mid"
 4
 5git config --list --local
 6
 7git config --get <key>
 8
 9git config --unset <key>
10
11git config --remove-section <section>

git configuration allows for duplicate keys. To operate on all duplicate keys, you can use the variants get-all and unset-all

Locations

There are several locations where Git can be configured. From more general to more specific, they are:

If you set a configuration in a more specific location, it will override the same configuration in a more general location.

References

Next -> git-branches

#boot_dev #history #commit #github #git_directory #primeagen #packed #programming #plumbing #states #optimal #git #configuration #compressed #repos #index #snapshot #working_tree #computer_science #repository #workflow #stage #logs