git get all deleted files code example Example 1: git remove cached git rm -r --cached <name-of-dir> Example 2: git abandon untracked files git clean -i