git remove from cache all files code example Example: git remove cached git rm -r --cached <name-of-dir>