delete new files git code example
Example 1: git remove Untracked files
git clean -f
Example 2: git remove file
git rm [-f | --force] [-n] [-r] [--cached] [--ignore-unmatch]
[--quiet] [--pathspec-from-file=<file> [--pathspec-file-nul]]
[--] [<pathspec>…]
Example 3: git delete file
// delete unused file.
// It will be placed on index area, and been deleted at next commit
git rm file-to-delete.ext