Which file tells Git to ignore build outputs such as dist/ or node_modules/?
Show answerHide answer
.gitignore contains patterns for files Git should leave untracked. It is commonly used for dependencies, generated builds, logs, and local secrets.
12 practical Git Fundamentals questions with an explanation after every answer. No timer, no signup — about 8 minutes.
This Git Fundamentals quiz is a Practical fundamentals check. It covers working tree and staging, commits, branches, remotes, merge conflicts, history, and repository hygiene. The quiz has 12 questions, takes about 8 minutes, and a score around 8 out of 12 means you have a workable baseline.
The 12 questions on this page are built for practical developer workflow screening. They focus on practical decisions you would make while building, debugging, querying, or operating real projects.
Three examples from the 12-question quiz. Answers stay hidden until you reveal them.
Which file tells Git to ignore build outputs such as dist/ or node_modules/?
.gitignore contains patterns for files Git should leave untracked. It is commonly used for dependencies, generated builds, logs, and local secrets.
What does detached HEAD mean?
Detached HEAD means HEAD points at a commit instead of a branch name. You can inspect or test there, but new commits need a branch if you want to keep them easily.
A regression appeared sometime in the last 30 commits. Which Git tool helps find the first bad commit?
git bisect performs a binary search through history. You mark commits good or bad, and Git narrows down the first commit that introduced the problem.
Compare your fundamentals across Git, AWS, Linux, SQL, Python, and Docker.
See all free quizzes