delete git cache code example
Example 1: git clean cache
$ git rm -r --cached .
Example 2: git remove cached
git rm -r --cached <name-of-dir>
Example 3: git rm cached
$ git rm --cached filename
$ git rm -r --cached .
git rm -r --cached <name-of-dir>
$ git rm --cached filename