how to remove cached form git code example Example: git remove cached git rm -r --cached <name-of-dir>