//how to remove all file/dir already commited from git git rm -r --cached <file/dir> //how to remove node_modules dir commited before pushing git rm -r --cached node_modules