可能是一个愚蠢的问题,但我对 .gitignore 的作用感到困惑
我已经完成了我的 Angularjs 应用程序,并且创建了一个 build
目录。我已准备好推送到 Heroku,但我已经了解到 build
目录不应受版本控制,因此我已将该文件夹添加到我的 .gitignore
因此,我的问题是,当我运行 git push heroku master 来将文件获取到 Heroku 时,它只会推送版本控制下的文件还是所有文件?我的理解是构建目录不会被推送,如果是这种情况,我应该如何将它发送到 Heroku?
最佳答案
will it only push the files under version control or all the files?
仅受版本控制的文件。
My understanding is that the build directory won't be pushed and if this is the case, how am I supposed to get it to Heroku?
参见“Deploying code”:构建将在heroku服务器上使用one of the buildpacks完成。 .
关于git - 了解 .gitignore 和构建目录,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25591435/