Recall & Review
beginner
What is the purpose of
git config user.name?It sets the name that will appear as the author of your commits in Git.
Click to reveal answer
beginner
What does
git config user.email do?It sets the email address that will be associated with your commits in Git.
Click to reveal answer
beginner
How do you set your Git username globally for all repositories?
Use the command
git config --global user.name "Your Name".Click to reveal answer
beginner
How can you check your current Git user name and email?
Run
git config user.name and git config user.email to see the current settings.Click to reveal answer
intermediate
What is the difference between setting Git config with and without
--global?With
--global, the setting applies to all repositories for your user. Without it, the setting applies only to the current repository.Click to reveal answer
Which command sets your Git email globally?
✗ Incorrect
The correct syntax is
git config --global user.email "you@example.com".What happens if you set
user.name without --global?✗ Incorrect
Without
--global, the setting applies only to the current repository.How do you view your current Git username?
✗ Incorrect
Use
git config user.name to see the current username.Why is it important to set
user.email in Git?✗ Incorrect
The email identifies who made the commits.
Which file stores the global Git configuration?
✗ Incorrect
Global Git settings are stored in the
~/.gitconfig file.Explain how to set your Git username and email globally and why it matters.
Think about how Git tracks who makes changes.
You got /4 concepts.
Describe the difference between global and local Git configuration for user.name and user.email.
Consider scope and command syntax.
You got /4 concepts.