问题
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