创建.gitignore
文件并在node_modules
那里添加:
touch .gitignore && echo "node_modules" >> .gitignore
删除缓存数据:
git rm -r --cached .
更新您的最后一次提交:
git add .
git commit --amend --no-edit
git push --force-with-lease
创建.gitignore
文件并在node_modules
那里添加:
touch .gitignore && echo "node_modules" >> .gitignore
删除缓存数据:
git rm -r --cached .
更新您的最后一次提交:
git add .
git commit --amend --no-edit
git push --force-with-lease