Git: How to add modified files and ignore untracked ones

Whenever you make changes to a bunch of files already tracked by git, there’s an easy way to add them without adding untracked files. The command is:

git add --update

or git add -u

That’s it!