If the directory is called foo, do this: cd /tmp git clone /path/to/project foo_project cd foo_project git filter-branch --prune-empty --subdirectory-filter foo master
That should do it, I did it a couple weeks back..
Dav
P.S. The awesome Scott Chacon gave me that tip ;)
On Fri, 14 Aug 2009, Weverton Gomes wrote:
> Hi,
>
> In git repository there is a dir that I want move to a separated repository,
> without loose the change history of files. How can I do that??
>
> Thanks,
>
> --
> Weverton Gomes de Morais
> Tecnólogo em Redes de Comunicação
> Desenvolvedor Delphi
> Entusiasta Ruby/Rails
> "Todos juntos somos fortes"
>
> >
--
Dav Glass
[email protected]
blog.davglass.com
+ Windows: n. - The most successful computer virus, ever. +
+ A computer without a Microsoft operating system is like a dog
without bricks tied to its head +
+ A Microsoft Certified Systems Engineer is to computing what a
McDonalds Certified Food Specialist is to fine cuisine +
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---
