Stage changes
low risk
Stages files for the next commit. See the flags and examples below, and run `man git` for the full reference.
| Flag | Meaning |
|---|---|
-p | Interactively choose hunks |
-A | Stage everything incl. deletions |
-u | Only tracked files |
-n | Dry run |
git add -pStage selectively · explain & risk-check →git add -n .Preview · explain & risk-check →Reference text is hand-written and may be incomplete — check man git for your version. Test destructive commands on a non-production system first.