Commits and branches

The Git Repo is a folder-based database of files and changes. A Repo is effectively a chronological sequence of project snapshots. It keeps track of the state of your project over time. A Snapshot simply represents the complete state of your project at a specific date and time. When you first create a Repo, it consists of one Branch, called the MasterBranch. A Branch represents a single, complete timeline of snapshots. A timeline is a good analogy because changes to the project happen over time, one after another, and each change builds from the ones before it along a continuous line or Branch. The GitKraken interface indicates that a Branch (named Master) has been created and is currently active:

The active branch

Get Mastering Unity 2017 Game Development with C# - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.