Chris,
You probably want to move the common bits into something like Engines, which
is officially part of Rails in 2.3.  You can then make that a repo of it's
own, and use submodule (or possibly gem?) to load it into the other repos.

For more info check out:
http://weblog.rubyonrails.org/2009/3/16/rails-2-3-templates-engines-rack-metal-much-more
http://guides.rubyonrails.org/2_3_release_notes.html#renewed-support-for-rails-engines

    Tekkub
    GitHub General Support
    http://support.github.com/
    Join us on IRC: #github on freenode.net
    Discussion group: [email protected]

On Tue, Mar 10, 2009 at 9:37 PM, Chris <[email protected]> wrote:

>
> Hi,
> I'd like to switch over to using git and github from using svn but I'm
> still not sure how best to go about converting my repository so it
> works with git.
>
> Right now, in one svn repo, I have 3 rails apps and one ruby app (uses
> active_record outside of rails) that all share the same models, unit
> tests, fixtures, mailer views, plugins, and some other miscellaneous
> code.  Right now, one of the rails apps has the real copies of these
> files and the other apps just use svn externals for those folders.
>
> I was wondering how I would mirror something like this in git.  Would
> I need to move all this shared code into separate git repositories and
> then use submodules? If I did this, would I have to have individual
> repositories for models, units tests, fixtures, etc? With GitHub, this
> could be quite a large monthly bill for me if I need a repository for
> each external.
>
> Anyways, if anyone has dealt with this situation and/or has any
> suggestions, it would be greatly appreciated.
>
> Thanks,
> Chris
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"GitHub" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/github?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to