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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.