git init creates a new repository with a .git directory that stores history.
Git · Lesson 1 · On the house
git init and git status
Start a repo and see what changed. Lesson 1 is free — on the house.
Lessons · Git · Lesson 1 of 10 · On the house
git init and git status
Start a repo and see what changed.

git status shows the working tree vs the index vs HEAD — your map of change.
Untracked files are unknown to Git until you add them; modified files already have history.
Run status constantly — it prevents committing the wrong set of files.
Initializing inside an existing repo nests repos by mistake; check before init.
init
git init
git statusQuiz
Quiz
Quiz
Quiz
Check
Match the still for: git init and git status.
Open-book: the answers are on this page. Pass every quiz and check (5) to mark the lesson done. This visit: 0/5.