How to remove mutiple files in git

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

Or

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

add all modified files:

git add $(git ls-files --modified)
Last modified: le 2018/10/13 12:18