# removes files added to git by mistake but not pushed, for example node_modules/ git rm --cached debug.log git rm --cached -r node_modules