remove file from git from terminal cashe code example Example: git remove cached git rm -r --cached <name-of-dir>