after remove cached files in git code example Example: git remove cached directory git rm -r --cached [directory]