D1: Version Control Fundamentals
GH-900 GitHub Foundations exam practice questions · 10 flashcards
Question
What is version control?
1 / 10
Tip: Space flips the card, ← / → navigate.
Show all 10 Version Control Fundamentals practice questions and answers
- What is version control?A system that records changes to files over time so you can recall specific versions, see who changed what, and collaborate safely.
- Benefits of version control?History and audit trail, easy rollback, parallel work via branches, collaboration, backup, and traceability of who changed what and why.
- Centralized vs distributed version control?Centralized (e.g. SVN) has one central server; distributed (Git) gives every clone the full history so work continues offline.
- Why is Git called distributed?Every clone contains the complete repository history, not just the latest snapshot.
- What problem does version control solve for teams?Multiple people can change the same codebase without overwriting each other's work, with merges and conflict resolution.
- What is a snapshot in Git?Git stores each commit as a snapshot of the whole project (unchanged files are referenced, not duplicated).
- What is a diff?The line-by-line difference between two versions of a file or commit.
- What is a merge conflict?When two branches change the same lines differently and Git can't merge automatically; a human must choose the result.
- What is a SHA in Git?A unique hash identifying each commit (and other Git objects).
- Why write good commit messages?They explain why a change was made, making history, reviews and debugging easier.