# Using git for projects with multiple gems on rubyforge

**URL:** <https://www.ruby-forum.com/t/using-git-for-projects-with-multiple-gems-on-rubyforge/173074>\
**Category:** Ruby\
**Created:** [August 1, 2009, 6:56pm UTC](https://www.ruby-forum.com/t/using-git-for-projects-with-multiple-gems-on-rubyforge/173074 "2009-08-01T18:56:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Joel\_VanderWerf](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/e19b73/32.png) [@Joel\_VanderWerf](https://www.ruby-forum.com/u/Joel_VanderWerf)\
**Post date:** [August 1, 2009, 6:56pm UTC](https://www.ruby-forum.com/t/using-git-for-projects-with-multiple-gems-on-rubyforge/173074/1 "2009-08-01T18:56:15Z")

</div>

Some rubyforge projects release more than one sequence of gems.

Has anyone found a way to manage the source for multiple gems in the  
unique git repository for the project? Is it better to use github, with  
a separate repos for each gem? Or just create an extra rubyforge project  
for each subproject (which seems too heavyweight for small gems)?

Is there any chance that rubyforge could support several git repos per  
project?

There are some ideas[1,2] floating around for using git branches for  
subprojects, but that adds a layer of complexity and  
off-the-beaten-trackness that makes me uncomfortable. And the official  
word is not encouraging[3].

It doesn’t look like git submodule is the answer[4]… you still need a  
repos for the submodule. (Maybe that argues for using github.)

Any ideas appreciated…

[1] google “git branch subproject”

[2] [http://drnicwilliams.com/2008/04/08/git-for-rubyforge-accounts/](http://drnicwilliams.com/2008/04/08/git-for-rubyforge-accounts/) –  
Dr. Nic suggests using branches for subprojects, but it sounds like an  
abstract thought, and not something he has tried.

[3] [http://git.or.cz/gitwiki/SubprojectSupport](http://git.or.cz/gitwiki/SubprojectSupport)

[4] [http://book.git-scm.com/5\_submodules.html](http://book.git-scm.com/5_submodules.html)

---

<div class="post-metadata">

**Author:** ![Joel\_VanderWerf](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/e19b73/32.png) [@Joel\_VanderWerf](https://www.ruby-forum.com/u/Joel_VanderWerf)\
**Post date:** [August 2, 2009, 3:46am UTC](https://www.ruby-forum.com/t/using-git-for-projects-with-multiple-gems-on-rubyforge/173074/2 "2009-08-02T03:46:29Z")

</div>

On Sun, Aug 02, 2009 at 01:55:25AM +0900, Joel VanderWerf wrote:

> There are some ideas[1,2] floating around for using git branches for  
> subprojects, but that adds a layer of complexity and  
> off-the-beaten-trackness that makes me uncomfortable. And the official word  
> is not encouraging[3].
> 
> It doesn’t look like git submodule is the answer[4]… you still need a  
> repos for the submodule. (Maybe that argues for using github.)
> 
> Any ideas appreciated…

I think I started using github before rubyforge offered git repos, so  
that’s  
where I’ve been the whole time. My main rubyforge project,  
copiousfreetime[1],  
uses 1 github repo per project. I manage the publishing of docs, gems,  
packages  
and such with rake tasks.

enjoy,

-jeremy

[1] [http://rubyforge.org/projects/copiousfreetime/](http://rubyforge.org/projects/copiousfreetime/)

---

<div class="post-metadata">

**Author:** ![Joel\_VanderWerf](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/e19b73/32.png) [@Joel\_VanderWerf](https://www.ruby-forum.com/u/Joel_VanderWerf)\
**Post date:** [August 5, 2009, 2:08am UTC](https://www.ruby-forum.com/t/using-git-for-projects-with-multiple-gems-on-rubyforge/173074/3 "2009-08-05T02:08:39Z")

</div>

Jeremy H. wrote:

> > 
> 
> I think I started using github before rubyforge offered git repos, so that’s  
> where I’ve been the whole time. My main rubyforge project, copiousfreetime[1],  
> uses 1 github repo per project. I manage the publishing of docs, gems, packages  
> and such with rake tasks.

That’s probably what I’ll do for now

Still, I filed a feature request on rubyforge for multiple git repos.  
Here’s the url, in case anyone wants to comment there.[1]

[1]  
[http://rubyforge.org/tracker/index.php?func=detail&aid=26861&group\_id=5&atid=104](http://rubyforge.org/tracker/index.php?func=detail&aid=26861&group_id=5&atid=104)
