Add & Commit

Stage changes and save snapshots

The core Git workflow: stage changes with add, then save them with commit.

Stage a specific file.

Unstaged

index.html
style.css

Staged

Empty

Terminal
$ git add index.html