Demo lesson

Your First Commit

0/3

Lesson

beginner

Your 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
  1. Initialize the repository. (Current objective)
  2. Stage README.md. (Not started)
  3. 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.