Git is a distributed version control system used to record project history and exchange changes between repositories. These notes build from the purpose of version control to everyday local commands, remotes, and safe recovery.

Topics

TopicDescription
Version ControlWhy teams record changes and how version control supports software and infrastructure work
Git FundamentalsRepositories, the working tree, staging area, commits, and the basic local workflow
Git RemotesCloning, remote-tracking branches, fetching, pulling, and pushing
Undoing ChangesRestoring files, unstaging, stashing, resetting, and reverting safely

Learning Path

Why version control?


Local Git workflow


Exchange commits with remotes


Recover or undo safely

Resources

Note: Commands and behaviour were checked against current Git documentation in July 2026.