Line At A Time
Level 1: Your First Commit
Your First Commit Save a snapshot of your project with git commit.

Git is a save system for code. Every project starts as a folder of files, and git keeps a diary of snapshots of that folder; each snapshot is called a commit. Once something is committed, you can always get back to it, even years later.

Saving takes three steps, and you'll use them thousands of times: git status to look around, git add . to stage your changes ("put them in the box"), and git commit -m "..." to seal the box with a short note about what you did. The note matters: "asdf" tells future-you nothing, "add a title screen" tells the whole story.

In the picture, every circle is a commit. Your repository already has one (C0): the empty project. Make the next one!

git statusShows which branch you are on and whether you have unsaved changes.
git add .Stages your changes; the dot means "everything I changed".
git commit -m "message"Saves a snapshot, labelled with your message.
Your task

Save a snapshot of your project with git commit.

Open this level in your browser to type the commands at a live git prompt with an animated commit graph.