git add

Stages changes (new files, modifications, deletions) to be included in the next commit.

Syntax

git
git add <file>
git add .
git add -p

Example

git
git add index.html          # stage specific file
git add src/                 # stage directory
git add .                    # stage all changes
git add -p                   # interactively stage hunks