rm cached git code example
Example 1: gitigore rm cache
git rm -r --cached .
Example 2: git remove cached
git rm -r --cached <name-of-dir>
Example 3: git remove cached directory
git rm -r --cached [directory]
Example 4: git rm cached
$ git rm --cached filename