git clean -xfd code example
Example 1: git clean cache
$ git rm -r --cached .
Example 2: git clean fdx
//Remove untracked files directories and ignored files
git clean -fdx
$ git rm -r --cached .
//Remove untracked files directories and ignored files
git clean -fdx