Command
git add
Updates the index for selected paths, including matching deletions. Subsequent edits need another add if they should be committed. Review scope before staging.
Formal Syntax & Structure
git syntaxgit
git add [--] <pathspec>...Working Example
Example Snippetgit
git add -- notes.txt