git add -u

Category: Git - Core

git add -u

Stage modifications and deletions but not new files

Stages only modifications and deletions to files already tracked by Git, but not brand-new untracked files.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.