* git clone / svn checkout
@ 2010-11-12 17:01 Bruno De Bondt
2010-11-13 17:34 ` Jakub Narebski
0 siblings, 1 reply; 2+ messages in thread
From: Bruno De Bondt @ 2010-11-12 17:01 UTC (permalink / raw)
To: git
Hello,
Just started using Git, coming from SVN.
Something I regularly do in SVN, is checking out part of a repository,
instead of the complete repository. Consider the following: I have a
local repository for development. On my testing server, I only (SVN)
check out part of this repository, eg. the document root of a website
(and not all the project management documents, which are in the same SVN
repository, but not needed on the testing server).
How would I do this in Git, ie. only get a specific part of a
repository? I feel that this is very much against the whole idea of Git
(where, as far as I understand Git now, you work with complete clones of
repositories), but is there a way to do this? Or should I just clone
complete repositories on my testing server as well?
Thanks,
Bruno
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: git clone / svn checkout
2010-11-12 17:01 git clone / svn checkout Bruno De Bondt
@ 2010-11-13 17:34 ` Jakub Narebski
0 siblings, 0 replies; 2+ messages in thread
From: Jakub Narebski @ 2010-11-13 17:34 UTC (permalink / raw)
To: Bruno De Bondt; +Cc: git
Bruno De Bondt <bruno@dewereldmorgen.be> writes:
> Just started using Git, coming from SVN.
>
> Something I regularly do in SVN, is checking out part of a repository,
> instead of the complete repository.
On the other hand in SVN you have multiple projects in a single
repository (under single repository hierarchy / svnroot).
> Consider the following: I have a local repository for
> development. On my testing server, I only (SVN) check out part of
> this repository, eg. the document root of a website (and not all the
> project management documents, which are in the same SVN repository,
> but not needed on the testing server).
>
> How would I do this in Git, ie. only get a specific part of a
> repository? I feel that this is very much against the whole idea of Git
> (where, as far as I understand Git now, you work with complete clones of
> repositories), but is there a way to do this? Or should I just clone
> complete repositories on my testing server as well?
In this case it would be possible, I think, to put project management
documents and website itself in different git repositories, and toe
them together using submodules (see git-submodule manpage, and
documentation on Git Wiki and elsewhere).
There is support in git nowadays (acquired quire recently) to
*checkout* only part of repository (so called "sparse checkout"), but
you still need to clone whole repository.
There was some proof-of-concept work on *partial clone* support; see
git mailing list archives. This is nevertheless quote hard problem
to solve correctly.
--
Jakub Narebski
Poland
ShadeHawk on #git
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-11-13 17:35 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-12 17:01 git clone / svn checkout Bruno De Bondt
2010-11-13 17:34 ` Jakub Narebski
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).