I'm cheap. I don't want to pay for many github accounts.
I have a project structure which looks something like this.
All projects (project1, herokurails1, and herokurails2 are under active development).
I would like to have one repository at some git hosting place such as github.com or even a local git server in the office. Whenever code changes anywhere in /repo/, I want to be able to run "git push github master" and have my entire /repo/ tree pushed up to github.
However, I would also like to be able to deploy my rails apps to heroku.com without pushing the entire repo/* tree pushed to each heroku app. e.g.
Is this possible? Do I need to set up anything special to make this happen? Or am I stuck with multiple git repositories?
This is going to get very unwieldy very quickly (especially as Git won't let you push pull sub directories like svn will)
I would look at not using Github for storing projects. Tools such as Bitbucket or CodebaseHQ have different pricing models which may well fit you better and give you the simplicity you need.
Alternatively, look at something like Gitosis, which can be made to be very Github-esque via tools like Gitlab
You could use git subtree
locally to maintain a git repository which is split from your larger repo
repository, and push from that split repository. Frankly, though, I'd either use one of the free services that Adam Dymitruk suggests or just pay GitHub a bit more - they do provide an excellent service, after all...
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With