how to delete list of not staged for commit files in git code example Example: how to remove all files from staging area git git rm --cached -r .