Skills101
← All practice quizzes

Quiz: Git Config, .gitignore and Hooks

5 questions · new set on every retakeNo time limitPass: 60%+10 XP on first pass

Make Git work the way your team needs. Understand system, global and local config, save time with aliases, write .gitignore patterns that really work, stop CRLF/LF line-ending noise, and block bad commits with hooks.

Log in to take the quiz

Free account · see your score, answers and explanations, earn XP

  1. Question 1

    user.email is set globally to a Gmail address and locally to a college address. Which does Git use in that repository?

  2. Question 2

    Which command shows which config level a value came from?

  3. Question 3

    Your .gitignore contains .env.* and then !.env.example. What happens to .env.example?

  4. Question 4

    The pattern /config.local.json is in the root .gitignore. Which file is ignored?

  5. Question 5

    You added .env to .gitignore, but git status still shows changes to it. Why?

🎯 Today’s placement challenge — 10 questions, no login. Can you score 10/10?Take today’s challenge →