Bird
0
0

You tried to set your Git user email with git config user.email you@example.com --global but it didn't work. What is the error?

medium📝 Troubleshoot Q6 of 15
Git - Configuration and Aliases
You tried to set your Git user email with git config user.email you@example.com --global but it didn't work. What is the error?
AThe command should be 'git set' not 'git config'
BThe email address is missing quotes
CYou cannot set user.email globally
DThe --global flag must come before the key and value
Step-by-Step Solution
Solution:
  1. Step 1: Check correct order of git config arguments

    The --global flag must appear before the key and value, like 'git config --global user.email value'.
  2. Step 2: Identify why the command failed

    Placing --global after the value causes Git to misinterpret the command and fail.
  3. Final Answer:

    The --global flag must come before the key and value -> Option D
  4. Quick Check:

    --global flag position matters [OK]
Quick Trick: Put --global before key and value in git config [OK]
Common Mistakes:
  • Putting --global after value
  • Forgetting quotes around email (optional)
  • Using 'git set' instead of 'git config'

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Git Quizzes