* Partial clone/pull?
@ 2010-07-20 22:15 Dread Quixadhal
2010-07-20 22:38 ` Avery Pennarun
0 siblings, 1 reply; 2+ messages in thread
From: Dread Quixadhal @ 2010-07-20 22:15 UTC (permalink / raw)
To: git
I have a local git repository of a server project that I'd like to
distribute. However, I don't want to distribute EVERY file in the
repository, but I *would* like to distribute the full set of changes for
those files I do plan to release.
I'm having some trouble figuring out how to do this. I assumed I'd create a
new repository and then use git pull to merge the directories I want in my
distribution repository. I can't seem to find a way to specify what files I
want though.
Let's say I had a repository called stuff, with directories a, b, and c. I
want to make a distribution repository containing just a and b, but with
full histories so a "git pull" will sync from the stuff repository, but
ignore the "c" directory.
Any suggestions?
Thanks!
--
View this message in context: http://old.nabble.com/Partial-clone-pull--tp29220205p29220205.html
Sent from the git mailing list archive at Nabble.com.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Partial clone/pull?
2010-07-20 22:15 Partial clone/pull? Dread Quixadhal
@ 2010-07-20 22:38 ` Avery Pennarun
0 siblings, 0 replies; 2+ messages in thread
From: Avery Pennarun @ 2010-07-20 22:38 UTC (permalink / raw)
To: Dread Quixadhal; +Cc: git
On Tue, Jul 20, 2010 at 6:15 PM, Dread Quixadhal <quixadhal@yahoo.com> wrote:
> I'm having some trouble figuring out how to do this. I assumed I'd create a
> new repository and then use git pull to merge the directories I want in my
> distribution repository. I can't seem to find a way to specify what files I
> want though.
>
> Let's say I had a repository called stuff, with directories a, b, and c. I
> want to make a distribution repository containing just a and b, but with
> full histories so a "git pull" will sync from the stuff repository, but
> ignore the "c" directory.
This is not a particularly easy thing to do in git. git-subtree is a
partial solution:
http://github.com/apenwarr/git-subtree
Have fun,
Avery
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-07-20 22:38 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-20 22:15 Partial clone/pull? Dread Quixadhal
2010-07-20 22:38 ` Avery Pennarun
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).