🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← 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?

  1. A.The Gmail address, because global is set first
  2. B.The college address, because the local level is more specific
  3. C.Both, joined with a comma
  4. 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 →