将提交ignore
2026-08-06 17:36:54
提交
提交
提交
1. 从 Git 跟踪中移除 node_modules(保留本地文件)
git rm --cached -r node_modules/
2. 将 node_modules/ 添加到 .gitignore(如果不存在则创建)
echo "node_modules/" >> .gitignore
3. 提交并推送
git add .gitignore
git commit -m "chore: 停止跟踪 node_modules"
git push