Week 14: Notes

There was no lecture or tutorial this week.

Our topic for this week is the Git version control system.

In the past decade, Git has been the primary tool that programmers around the world use for publishing and sharing code and for collaborating on software projects. It is an immensely popular and practical tool. You should all become fluent in using Git.

To learn about Git, read the following chapters of the book Pro Git by Scott Chacon and Ben Straub. You can read the book online for free and/or download a PDF copy of the book.

  1. Getting Started

  2. Git Basics

  3. Git Branching (through the section "Branch Management")

The book will teach you how to use Git from the command line, which is an important skill. Various graphical interfaces are also available. In particular, most IDEs have some form of Git support. For example, Visual Studio Code includes Git integration that works quite nicely. So you will probably also want to learn how to use Git from within your IDE of choice.

Git is often used for sharing work between programmers, but you may want to consider using Git even for projects that you work on by yourself. In a typical workflow, you will commit a change every time you add a new feature, fix a bug or otherwise reach a stable stopping point. Using Git on your own projects brings these advantages: