Learn what Git is, why programmers use version control, and how Git helps people track changes and work together on projects.
Read each problem carefully. Write complete answers and use examples when helpful.
Understanding snapshots, commits, repositories, and collaboration
CS - Grade 6-8
- 1
In your own words, explain what version control means in computer science.
- 2
What is Git, and what kind of problem does it help solve?
- 3
A student saves a game project as game-final, game-final2, game-final-real, and game-final-real-updated. Explain how Git could make this easier.
- 4
What is a repository, often called a repo, in Git?
- 5
What is a commit in Git? Explain it using the idea of taking a snapshot.
- 6
Why should a commit message be clear and specific?
- 7
Choose the better commit message and explain why: fixed stuff or added login button to home page.
- 8
What does it mean to track changes in a file?
- 9
Imagine you wrote code yesterday that worked, but today your new changes broke it. How could Git help?
- 10
What is a branch in Git?
- 11
Why might a programmer create a branch before trying a risky change?
- 12
What does it mean to merge a branch?
- 13
Two students edit the same sentence in a shared project in different ways. What kind of problem might Git report, and what must the students do?
- 14
How is Git different from simply using an undo button in a text editor?
- 15
Write one short example of a school project where Git would be useful. Explain why it would help.