🎙 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 2 of 10

Which command shows which config level a value came from?

Which command shows which config level a value came from?

  1. A.git config --list --short
  2. B.git status --config
  3. C.git config --show-scope --get user.email
  4. D.git log --config
Answer & explanation

Correct answer: git config --show-scope --get user.email

--show-scope prints system, global or local next to the value.

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 →