What Is Git
Part of the Version Control section of Coddy's Terminal journey — lesson 2 of 58.
Git is a free, open-source version control tool. You install it once, then run git commands inside any folder you want to track.
A folder being tracked by Git is called a repository (or repo for short). Inside that folder, Git records snapshots of your files every time you save a checkpoint.
You always interact with Git through the terminal:
git --versionThis prints the installed Git version and confirms Git is available on your system. If it returns an error, Git is not installed.
Every command you will learn in this section starts with the word git, followed by a subcommand like init, status, or commit.
Challenge
BeginnerRun git --version in the terminal to confirm Git is installed.
Cheat sheet
Git is a version control tool that tracks snapshots of files in a repository (a tracked folder).
All Git commands start with git followed by a subcommand (e.g., init, status, commit).
Confirm Git is installed:
git --versionTry it yourself
This lesson includes a short quiz. Start the lesson to answer it and track your progress.
All lessons in Version Control
2Getting Started
Initialize A RepositoryThe .git FolderConfigure Your IdentityGit StatusRecap - First Repo8Merging
What Is A MergeFast-Forward MergeThree-Way MergeMerge ConflictsResolve A ConflictRecap - Merge Master11Feature Branch Project
Project OverviewInitialize Main3Tracking Changes
The Staging AreaGit AddGit CommitModifying A Tracked FileGit LogRecap - First Commits6Recipe Site Project
Project OverviewInitialize And Ignore