.gitignore文件添加排除的文件无效果

来源:6-7 Vue项目预热 - 项目代码初始化

慕斯1122527

2021-04-17

.DS_Store
node_modules/
/dist/
npm-debug.log*
yarn-debug.log*
yarn-error.log*
package-lock.json
package.json

# Editor directories and files
.idea
.vscode
*.suo
*.ntvs*
*.njsproj
*.sln

请问老师,为什么在.gitignore文件添加了package-lock.json和package.json。使用git add .还是把这两个文件提交到缓存区了?

写回答

1回答

Dell

2021-04-17

这两个为啥你要禁止啊,这两个必须要传呀

0
2
Dell
回复
慕斯1122527
这两个必须要有的,我肯定也是有的
2021-04-18
共2条回复

Vue2.5-2.6-3.0开发去哪儿网App 零基础入门到实战

课程紧跟Vue3版本迭代,企业主流版本Vue2+Vue3全掌握

10718 学习 · 8204 问题

查看课程