Beginner Git & Version Control
Q27 / 100

What is the difference between "git config --global" and "git config" (local)?

Correct! Well done.

Incorrect.

The correct answer is A) "--global" applies the setting to all repositories for the current user, while a local config setting applies only to the current repository

A

Correct Answer

"--global" applies the setting to all repositories for the current user, while a local config setting applies only to the current repository

Explanation

Global config (stored in ~/.gitconfig) applies as a default across all repositories for that user, while local config (stored in .git/config) overrides it for a specific repository.

Progress
27/100