Lesson
beginnerYour First Commit
Goal
Turn a plain folder into a Git repository and record its first snapshot.
Git only tracks a folder once you tell it to. After that, saving work is a two-step process: you stage the changes you want with git add, then commit them to record a permanent snapshot in the repository's history.
Run git status at any time to see what Git thinks is going on.
Objectives
0/3- Initialize the repository. (Current objective)
- Stage README.md. (Not started)
- Create your first commit. (Not started)
Your task nowStep 1 of 3
Initialize the repository.
Need help?
Preparing your workspace…
Repository Graph
Click a commit to inspect it
0 commits
Working Tree
Not a Git repository yet
No unstaged changes
Your working tree matches the staging area.
Staging Area
Files prepared for the next commit
No staged changes
Use git add to prepare files for your next commit.
Repository
Committed history
No commits yet
Use git commit to record staged changes.
