The main goal of the Modern Programming course is to bring students closer to how real software is built. Version control is an essential part of that process, and today almost every development team uses Git.

What version control gives students

  • A history of changes. Every saved state (commit) is recorded with a message. If something breaks, they can return to the last working version.
  • Teamwork. Several students work on one project at the same time and merge their changes safely.
  • Transparent assessment. The teacher can see each student’s contribution in the history.
  • A portfolio. Public repositories become a practical portfolio to show future employers.

How to bring it into the course

The first session covers only four commands: create a repository, stage a change, commit and view the history. Next come remote repositories and branches. By the end of the semester students complete a small project in teams of three or four: each works on a separate branch, and changes are reviewed and merged into the main branch.

Tips

Commit messages should be short and meaningful: not “fix” but “fixed error on empty list”. If the habit of small, frequent commits is built from the start, students will be ready for teamwork in industry.