任何人有任何经验,但越来越辐射CMS扩展,实际上使其到Heroku的实例?我曾试图消除子模块和添加文件回来,但还没有真正有多少运气。

有帮助吗?

解决方案

的Heroku当前不支持的git子模块。 然而,他们的(优秀)的文件表示解决的办法:看看这里

从文档:

$ cd myapp
$ rm -rf `find . -mindepth 2 -name .git`
$ git add .
$ git commit -m "brought submodules into the main repo"

其他提示

GIT中的子模块当前不支持。我们正在评估是否要支持他们的未来;在此期间,你需要跟踪在主项目的子模块。你可以这样做是这样的:

$ cd myapp
$ rm -rf `find . -mindepth 2 -name .git`
$ git rm --cache `git submodule | cut -f2 -d' '`
$ git rm .gitmodules
$ git add .
$ git config -l | grep '^submodule' | cut -d'=' -f1 | xargs -n1 git config --unset-all
$ git commit -m "brought submodules into the main repo"

如果你不知道你的项目是否使用子模块运行以下命令:

$ find . -mindepth 2 -name .git

如果它打印任何输出,你有子模块。

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top