【发布时间】:2018-07-06 05:38:48
【问题描述】:
所以我尝试使用来自本地 git 构建的 create-react-app 推送我的初始提交。我的.gitignore 看起来像这样:
# See https://help.github.com/ignore-files/ for more about ignoring files.
# dependencies
/node_modules
# testing
/coverage
# production
# misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local
npm-debug.log*
yarn-debug.log*
yarn-error.log*
我的目录是这样的:
默认目录结构不变,为什么还要上传node_modules呢?
更新信息:
所以在我的 git 忽略中修改了它,但它似乎仍然推送了 `node_modules'。我的 git root 是 theapp > build / node_modules / public / etc...如果有帮助的话。
我继续并允许它,但在我与git push azure master 的推送结束时,我现在得到了这个:
此外,在 Windows 中,我的文件资源管理器如下所示:
还有什么想法?
【问题讨论】:
标签: git reactjs azure gitignore create-react-app