Get started with Git

Learning objectives: understand what Git is, how version control works, and the core commands and workflow every developer uses.

Overview

The foundation module: what distributed version control is, why source control underpins the whole DevOps value stream, and how to move a project into Git.

Units

  • What is version control / Git
  • Core Git workflow (clone, add, commit, push)
  • Setting up a repository in Azure Repos or GitHub

Key terms & commands

clone · add · commit · push · pull · fetch · branch · checkout · remote · HEAD · working tree vs. staging

Hands-on

git init / git clone, make a change, stage, commit, push to a remote; inspect git status and git log.

Exam focus

Distributed vs. centralized; the add→commit→push cycle; every clone is a full history.

Path MOC · branching-strategies · pull-requests-and-code-review