Sobes.tech
Junior — Middle

What is the main function of the 'git config' command in Git management?

sobes.tech AI

Answer from AI

The git config command is used to manage Git settings. It allows you to set configuration parameters that affect Git's behavior, such as username, email, default editor, and other options. Settings can be applied at three levels:

  • System (--system) — for all users on the computer.
  • Global (--global) — for the current user.
  • Local (default) — for a specific repository.

Example of setting the username globally:

git config --global user.name "Ivan Ivanov"