操作下面3步即可 git rm -r --cached node_modules git commit -m 'delete node_modules file' git push origin master