Lesson 01
Git Basics
Git keeps track of versions of your project.
Visual Explanation
my-project/Not initialized
index.html
style.css
app.js
.git/Git metadata
History is not available yet
Ready to run git init.
Saved Checkpoints
A commit is a saved checkpoint of your project.
The Real Command
Terminal
git initgit init creates an empty Git repository in this folder. Files are not staged or committed yet.
Command Details
git init -b main-b names the first branch. This starts the repository with a branch named main.
Knowledge Check
Check Your Git Mental Model
Initialize a repository, then make sure the checkpoint idea is clear.
Question 1 of 5
- Question 1: current
- Question 2: not started
- Question 3: not started
- Question 4: not started
- Question 5: not started