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