As we know the “git add *” can add multiple new and modified files, but not for deleted files, if there are many file deleted, do we delete them one by one, that will be a nightmare. so we can use below way to do this quickly:

updates all changes:

git add -u

delete all files:

git ls-files --deleted | xargs git rm


git rm $(git ls-files --deleted)

add all modified files:

git add $(git ls-files --modified)