From basic snapshots to complex branching workflows, master them all visually.
Version control is a system that records changes to files over time, allowing you to recall specific versions later.
Git is a distributed version control system, unlike centralized systems like SVN or CVS.
A repository is the complete collection of files and their entire revision history for a project.
The working directory contains the actual files you see and edit on your computer.
The staging area is a file inside your Git directory that stores information about what will go into your next commit.
A commit is a snapshot of your project at a specific point in time, stored as an object in Git's database.
Every commit has a unique identifier called a hash (SHA-1), which is generated based on the commit's content.
Git stores complete snapshots of your project files, not just differences between versions.
HEAD is a pointer to the current branch or commit you're viewing in your repository.
A branch is a movable pointer to a commit that represents an independent line of development.
The git checkout command switches branches or restores working directory files.
Detached HEAD occurs when HEAD points directly to a commit instead of a branch reference.
Git log displays the commit history, showing commits in reverse chronological order.
Merging combines the history of two branches by creating a new merge commit with two parents.
A fast-forward merge occurs when the target branch is directly ahead of the source branch.
A three-way merge combines divergent histories by using a common ancestor commit.
Merge conflicts occur when Git cannot automatically resolve differences between branches.
Rebase moves or combines a sequence of commits to a new base commit.
Merge preserves true history; rebase creates a linear history by rewriting commits.
Reset moves HEAD and optionally updates the staging area and working directory.
Revert creates a new commit that undoes changes from a previous commit without removing it from history.
Stash temporarily shelves changes you've made, allowing you to work on something else.
A remote repository is a version of your project hosted on the internet or network.
Origin is the default name for the primary remote repository. Upstream is the remote you originally forked from.
Fetch downloads remote data without merging. Pull fetches and immediately merges the changes.
Push uploads your local commits to a remote repository.
A pull request is a way to propose changes to a codebase and request that they be reviewed and merged.
Cherry-pick applies the changes introduced by some existing commits to your current branch.
Git bisect uses binary search to find which commit introduced a bug.
Tags are references that point to specific points in Git history, typically used for release versions.
Git stores data as objects: blobs (file content), trees (directory structure), and commits (snapshots with metadata).