Udemy
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Mastering the Basics of Git: A Step-by-Step Guide
Role Play
Rating: 4.4 out of 5(372 ratings)
31,425 students

Mastering the Basics of Git: A Step-by-Step Guide

Learn Git from zero: what version control is, installing Git, repositories, staging, commits, history and core commands
Created byVitalii Shumylo
Last updated 11/2026
English

What you'll learn

  • Explain what version control is and why teams use Git
  • Install and configure Git on Windows, macOS or Linux
  • Create a repository and understand the working tree and staging area
  • Stage and commit changes with clear messages
  • Read the project history and see what changed
  • Check your knowledge with a 40-question practice test

Course content

1 section • 21 lectures • 2h 14m total length
  • What is a Version Control System and Why Do We Need It6:22

    Discover what a version control system is and why it matters in modern development, including how VCS tracks changes, enables rollback, and why Git is standard for developers.

  • The Evolution of Version Control Systems from Manual to Git6:22

    Explore the evolution of version control from manual version control to centralized systems and finally distributed Git, highlighting reliability, offline work, and the rise of GitHub.

  • Key Problems Solved by Version Control Systems6:16

    Discover how version control systems like git address managing changes, collaboration, and code errors, while preserving change history and enabling safe reversions and data backup.

  • Manual Version Control Demonstration and Limitations8:44

    Demonstrate manual version control by creating and tracking local file versions, highlighting inefficiencies. Compare this approach to git's automatic change tracking, history preservation, and collaborative support.

  • Introduction to Version Control Summary and Next Steps4:39

    Review how version control tracks changes and stores history with Git and GitHub. Apply tips to start small, experiment, and prepare for installing Git and basics next.

  • Assessment on Version Control Systems Fundamentals6:18

    Assess your understanding of version control by answering nine questions and reviewing explanations after each item. Explore centralized svn and distributed git, uniting history tracking and collaboration through GitHub.

  • Section Quiz: Introduction to Version Control Systems: Fundamentals and Evolution
  • Introduction to Git and Its Impact on Software Development6:30

    Discover git as a distributed version control system that tracks history, enables conflict-free collaboration, and supports branching, merging, and pull requests for open source and ci/cd workflows.

  • Installing Git on Different Operating Systems5:30

    Install git on Windows, macOS, and Linux, verify with git --version, and use Git Bash on Windows or Homebrew on macOS for a streamlined version control workflow.

  • Linux Git Installation and Configuration Fundamentals6:52

    Install git on linux via the package manager for red hat, ubuntu, or arch, then run git config --global user.name and git config --global user.email, and git config --list.

  • Basic Structure and Core Concepts of Git7:13

    Explore the basic structure of Git, including the working directory, staging area, repository, commits, and branches, and learn essential commands like git status, git add, and git commit.

  • Creating Your First Git Repository and Commit6:00

    Initialize a new git repository with git init, create and stage files like README.md, and make your first commit while inspecting history via command line or a GUI tool.

  • Creating and Managing Commits in Git3:46

    Learn to create a git repository, stage and commit changes with descriptive messages, view history with git log, and manage file modifications and deletions on the main branch.

  • Practical Usage of Basic Git Commands8:08

    Initialize a new repository with git init, create files with touch, add and commit, check status, and review history with git log; learn to undo changes with git checkout.

  • Undoing Changes and Reverting Commits in Git8:53

    Learn to undo changes across the working directory, index, and history using checkout, reset, and revert commands.

  • Assessment on Git Fundamentals and Basic Commands5:18

    Assess your understanding of git fundamentals with nine multiple-choice questions, explanations after each answer, covering distributed version control, git version, init, add, commit, log, checkout, diff, and revert.

  • Section Quiz: Getting Started with Git: Installation, Basics, and Core Concepts
  • Core Git Concepts and Repository Structure Overview5:24

    Review core Git concepts, including blobs, trees, commits, and references like head, branches, and tags, and recap the working directory, staging area, and repository structure.

  • Essential Git Commands and Their Categorization8:03

    Master essential git commands across initialization, file staging, commits, history, and cleanup—covering git init, git clone, git config, git add, git commit, reset, diff, log, ignore via gitignore, and recovery workflows.

  • Creating a Repository and Configuring Gitignore9:54

    Perform a practical, hands-on setup: create a repository with mkdir and cd, initialize Git to reveal the hidden .git directory, then configure .gitignore to exclude temp.log and *.temp.

  • Staging Changes and Creating Commits in Git6:49

    Stage changes with git add ., verify git status, commit with git commit, and amend messages with --amend. Review history with git log and selectively stage changes with git add -p.

  • Undoing Changes and Reverting Commits in Git Practice6:46

    Learn to undo changes and revert commits in git using checkout to restore files, plus reset --soft to roll back commits while preserving work, and git revert to reverse changes.

  • Which Change Broke the Monthly Report? Making the Git History Useful
  • Who Broke the Website? Bringing Version Control to the Team
  • Practice Test: Git Basics
  • Bonus Lecture: What to Learn Next0:31
  • Section Quiz: Repository Management and Core Commands
  • From Empty Folder to Clean History: Commit, Ignore and Undo in Git

Requirements

  • No Git or programming experience is needed
  • A computer with Windows, macOS or Linux to install Git

Description

If you have ever saved files as final, final2 and final-really, you already know why version control exists. Git is the tool almost every team uses for it - for code, scripts and configuration files. This course gives you a calm, step-by-step start with Git.

How the course works

Short lectures explain one idea and then show it in a terminal, so you can type the same commands on your own machine. A 40-question practice test at the end checks that the basics have stuck.

Inside the course

  • Version control fundamentals: what version control is, how it evolved, and why Git works the way it does.
  • Getting started with Git: installation, configuration and the core concepts - working tree, staging area and repository.
  • Repository management and core commands: creating repositories, staging and committing changes, and reading the project history.

A practical example

A typical first use: you keep your admin scripts in a folder. Put the folder under Git, commit after each change, and you can always see what changed, when and why - and go back if a change breaks something.

The course runs about 2 hours in 21 lectures. No Git or programming experience is needed; it works on Windows, macOS and Linux.

Who this course is for:

  • Beginners who want to start using Git
  • System administrators who want version control for scripts and configs
  • Junior developers and DevOps learners who need the Git basics