添加gitignore

# 1. .gitignore写入 node_modules/ 

echo "node_modules/" >> .gitignore # 2. 移除git对这个文件夹的追踪,本地文件夹不动
git rm --cached -r node_modules/ # 3. 提交变更
git add .
git commit -m "ignore node_modules"

 

posted @ 2026-08-21 22:28  MvloveYouForever  阅读(7)  评论(0)    收藏  举报