Re: publish since current state?
- From
- Gennady Kushnir <genkush@gmail.com>
- Date
- Nov 17, 2008, 10:52 UTC
- Message-ID
- <23ae57c00811170252uba2cd22kb99a23134f026fc6@mail.gmail.com>
- In-Reply-To
- <49211B78.50204@op5.se>
Thank your for your reply. But I could not find documentation for grafts... it is only mentioned in glossary. The only thing I found with google is 1-year-old a mail list post http://marc.info/?l=git&m=119636089519572&w=2 could you point out some direct link to grafts documentation?
And also - what you mean by "copy the object database from the old repository into the new one" ? I'm not aware of such operation. What command does it? And will not that copied database go online as dangling objects?
Gennady Kushnir
2008/11/17 Andreas Ericsson <ae@op5.se>:
Show 26 quoted lines
> Gennady Kushnir wrote: >> >> Hello list. >> I'm going to publish my work into online public repository. >> I have several months of previous history in my local git repo. And I >> don't want to make it all public. >> Is it possible to publish just a shallow copy of my repository storing >> my current tree? > > Yes. Look for 'grafts' in the documentation. You'll have to create a > new repository containing only the most recent code first, and then > create the grafts-file in that repository and copy the object database > from the old repository into the new one. > >> I'd also like to keep my local history private but push new commits >> from it into that online repo. >> > > The grafts solution will work like that, assuming you don't publish > your grafts-file. > > -- > Andreas Ericsson andreas.ericsson@op5.se > OP5 AB www.op5.se > Tel: +46 8-230225 Fax: +46 8-230231 >