Using SubModules on AppHarbor

拜拜、爱过 提交于 2019-12-05 01:18:33

问题


I know that current Git submodules are not supported by AppHarbor (as per this support ticket and I just did a quick test that confirmed it)

BUT, is there another way?

I currently have a GitHub repository that I want to use as my submodule's remote master, and I need to create a number of other GitHub repositories that use this codebase (with the only changes happening inside the App_Data contents).

Using a Git submodule seems like a perfect solution, BUT, of course that problem is that its contents will not be deployed to AppHarbour.

So apart from creating a hard-copy (on the file system) of the master GitGub Repository, is there another alternative?


回答1:


I actually found a better way to do this using Git SubTree Merge. That works much better than submodules, since I do want to be able to:

  • have the local (merged) files there
  • be able to make changes to then
  • have the full history of the original repositories.

Here are more details about Git's subtree merge:

  • http://help.github.com/subtree-merge/
  • http://progit.org/book/ch6-7.html



回答2:


set up a second repo so you don't bloat yours with the binaries. Merge in your app into that repo and push from there.

You could also use that repo to "unsubmodule" your dependencies with a short script.



来源:https://stackoverflow.com/questions/9229984/using-submodules-on-appharbor

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!