Yes, you'll need to clone again for each subdirectory with that setup.
There are ways to get git to share the space though, check out git-clone's
docs: http://www.kernel.org/pub/software/scm/git-core/docs/git-clone.html
Basically you would clone the main repo once from GitHub, then clone from
your local repo using the --shared flag. After you've cloned locally, you
can add a remote to github so that you can push from that repo.
I have a question here though... why do you want to do this? You're
basically going around and adding a bunch of complexity that, in the end,
lands you right back where you would be if you simply committed everything
as subdirectories in the same branch.
Tekkub
GitHub Tech Support
http://support.github.com/
Join us on IRC: #github on freenode.net
Discussion group: [email protected]
On Mon, Sep 21, 2009 at 1:38 PM, John W. Long <[email protected]> wrote:
>
> Hi,
>
> I would really like to have several repositories for an application to
> store the various design and development resources. A project
> directory typically has the following subdirectories:
>
> project-name/
> artwork/ # logos, etc...
> mockups/ # mockups of application screens
> prototype/ # raw html and css
> application/ # the rails application
>
> So for "project-name" I'd have repositories for artwork, mockups,
> etc... The problem with this approach on Github is that for one
> project it will consume 4 slots. If I do this for every project I'll
> bump over my current plan's repository limits rather quickly.
>
> So I thought about storing these different subdirectories in git
> branches. This way I would have one repository with artwork, mockups,
> etc... branches. I have heard that some git projects do this. (For
> example, the git repository for git has a "docs" branch.)
>
> This would work well for me, but I'd like to have the branches broken
> out into separate directories on my hardrive. This would allow me to
> run the prototype and the application concurrently and work on mockups
> in my graphics program.
>
> Is there a way to do this without cloning the repository multiple
> times and switching to the correct branch in each directory? The
> downside of that approach is that with 4 subdirectories and lots of
> binary files, it will consume 8x the necessary disk space.
>
> --
> John Long
> http://wiseheartdesign.com
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---