-
在**.gitignore**文件上写上:
node_modules/
dist/ -
进入仓库目录,删除github仓库上.gitignore上新加的选项
git rm -r --cached . -
然后重新添加要提交的选项
git add .
git commit -m 'remove node_modules and dist -
最后在git push 到远程仓库上就可以了。
git push
git push之后删除远程仓库node_modules和dist
最新推荐文章于 2022-07-16 19:30:56 发布