Command
git add -u
Updates existing index paths, including deletions, without adding wholly untracked files. Review staged changes before committing.
Formal Syntax & Structure
git syntaxgit
git add -u [-- pathspec]Working Example
Example Snippetgit
git add -u