🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: Git Basics: all 10 questions

Quiz: Git Basics · Question 3 of 10

Which file tells Git to ignore nodemodules and .env?

Which file tells Git to ignore node_modules and .env?

  1. A..gitconfig
  2. B..gitignore
  3. C.README.md
  4. D.package.json
Answer & explanation

Correct answer: .gitignore

Patterns listed in .gitignore are not tracked.

Can you get the rest right without peeking?

Take the timed Quiz: Git Basics quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →