← Quiz: Git Config, .gitignore and Hooks: all 10 questions
Quiz: Git Config, .gitignore and Hooks · Question 1 of 10
user.email is set globally to a Gmail address and locally to a college address. Which does Git use in that repository?
user.email is set globally to a Gmail address and locally to a college address. Which does Git use in that repository?
- A.The Gmail address, because global is set first
- B.The college address, because the local level is more specific
- C.Both, joined with a comma
- D.Neither; Git asks every time
Answer & explanation
Correct answer: The college address, because the local level is more specific
Local overrides global, and global overrides system.
Can you get the rest right without peeking?
Take the timed Quiz: Git Config, .gitignore and Hooks quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →