Software Engineering Fundamentals · Version control

Git Tutorial

Distributed collaboration — branching models, merges, bisect workflows, reflog escapes.

Sponsored

Lesson outline

  1. 1
    Install Git and Configure Identity

    Learn to install Git on Windows, macOS, or Linux and set your user name and email for commits. Step-by-step instructions, troubleshooting tips, and what to learn next.

  2. 2
    Git Introduction

    Snapshots vs deltas — commits, trees, and distributed workflows.

  3. 3
    Create Your First Local Repo

    Create your first local repository with Git. Learn the core concept, step-by-step commands, troubleshooting tips, and what to study next in this Git Tutorial lesson.

  4. 4
    Install & Configure Git

    Identity settings and sane defaults for beginners.

  5. 5
    Track Changes with git add and commit

    Learn to track changes in Git using git add and commit. This lesson covers the core concepts, step-by-step walkthrough, and troubleshooting for effectively staging and saving your work.

  6. 6
    Create a Repository

    git init, status, staging area mental model.

  7. 7
    Understand the staging area

    Learn the staging area workflow in Git: what it is, why it matters, and how to use it effectively. Hands-on steps, practical tips, and troubleshooting.

  8. 8
    Commits & History

    git add/commit/log — writing reversible checkpoints.

  9. 9
    View History with git log and diff

    View history with git log and diff - Git Tutorial.

  10. 10
    Branches

    Branch early for experiments — isolation before integration.

  11. 11
    Undo Changes with Checkout and Reset

    Learn to undo changes with checkout and reset in this Git Tutorial. Step-by-step instructions, comparisons, and troubleshooting to master Git undo operations.

  12. 12
    Merge Basics

    Fast-forward vs merge commits and resolving simple conflicts.

    Git Tutorial — step-by-step tutorials

    What you will find here

    This track walks through git tutorial in order — each lesson is server-rendered HTML you can read without JavaScript. Follow the outline, then practice in the browser IDE when a lesson links to runnable code.

    Tutorials vs quizzes and code samples

    Tutorials teach in sequence. For quick checks use quizzes. For copy-paste snippets see code samples. For deeper reading browse articles.