Take the 2-minute tour ×

I have directory: Folder/, this is repository on github. In this directory exist another directory: Folder/Site/. I need deploy Site/ to Heroku or VPS. I dont want creating new repository in Folder/Site and include it into Folder repo (Submodules). Any idea? This is realy? Problem in creating a submodule is that it increases the number of repositories on githab, and the repository Folder/ is private.

share|improve this question
I need deploy like this: git@github.com:verybigman/folder.git/site –  verybigman Feb 13 '13 at 21:04
add comment

2 Answers

You should checkout Git Subtree (https://github.com/apenwarr/git-subtree). It'll let you do something like this:

git subtree push --prefix Site origin master
share|improve this answer
Thank you. But I do not understand the difference of sub-modules. I will investigate. –  verybigman Feb 13 '13 at 20:45
add comment

One way would be to fork the buildpack you are currently using (I'm assuming you use the Cedar stack here) and modify it to work on a subdir of the git tree instead of its root. See the Buildpack documentation on Heroku's Dev Center.

share|improve this answer
add comment

Your Answer


