CS Grade 6-8

CS: Version Control: What Is Git?

Understanding snapshots, commits, repositories, and collaboration

View Answer Key
Name:
Date:
Score: / 15

Understanding snapshots, commits, repositories, and collaboration

CS - Grade 6-8

Instructions: Read each problem carefully. Write complete answers and use examples when helpful.
  1. 1
    A document shown evolving through several saved versions along a timeline.

    In your own words, explain what version control means in computer science.

  2. 2
    Multiple laptops share changes into one organized project history.

    What is Git, and what kind of problem does it help solve?

  3. 3
    Messy duplicate files compared with an organized timeline of saved project versions.

    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. 4
    An open repository folder holding files and a project history diagram.

    What is a repository, often called a repo, in Git?

  5. 5
    A camera takes snapshots of a project folder to represent commits.

    What is a commit in Git? Explain it using the idea of taking a snapshot.

  6. 6

    Why should a commit message be clear and specific?

  7. 7

    Choose the better commit message and explain why: fixed stuff or added login button to home page.

  8. 8
    A document with highlighted changed lines being inspected with a magnifying glass.

    What does it mean to track changes in a file?

  9. 9
    A project history timeline shows returning from a broken new version to an earlier stable version.

    Imagine you wrote code yesterday that worked, but today your new changes broke it. How could Git help?

  10. 10
    A project timeline splits into a separate branch.

    What is a branch in Git?

  11. 11
    A side branch lets a risky experiment happen away from the main project path.

    Why might a programmer create a branch before trying a risky change?

  12. 12
    Two project branches curve together and merge into one path.

    What does it mean to merge a branch?

  13. 13
    Two students make different edits to the same part of a shared document, causing a conflict.

    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. 14
    A single undo arrow is compared with a branching history of saved project versions.

    How is Git different from simply using an undo button in a text editor?

  15. 15

    Write one short example of a school project where Git would be useful. Explain why it would help.

LivePhysics™.com CS - Grade 6-8

More CS Worksheets

See all CS worksheets

More Grade 6-8 Worksheets

See all Grade 6-8 worksheets