clear git cache visual studio code example Example: git remove cached git rm -r --cached <name-of-dir>