News for hackers. Stuff that matters.
Re:Moving Files from one Git Repository to Another, Preservi... by timtadh on Tuesday May 17, 2011 @02:06PM (#2557222)
An excellent tool I have used for similar purposes in the past (although it can do other things as well) is git-subtree. I recommend checking it out: https://github.com/apenwarr/git-subtree

Edit a more useful page: https://github.com/apenwarr/git-subtree/blob/master/git-subt...

Re:Moving Files from one Git Repository to Another, Preservi... by pyre on Tuesday May 17, 2011 @06:19PM (#2558179)
That was my thought as well, but then I thought that the requirements might be different here. git-subtree would allow you to create a git repository (with history) from a directory in a pre-existing repository. You could them just 'git rm -r' the directory from the original repository, but I'm not sure if the requirements here are to completely remove the history of that directory from the original repository too (because git-subtree doesn't do that, to my knowledge).
Re:Moving Files from one Git Repository to Another, Preservi... by timtadh on Tuesday May 17, 2011 @07:04PM (#2558338)
I agree, git-subtree doesn't quite do what they do in this blog post, but it covers similar ground and is really easy to use in comparison.
Re:Moving Files from one Git Repository to Another, Preservi... by gregbayer on Tuesday May 17, 2011 @06:18PM (#2558176)
Thanks! git-subtree looks very useful. Have you used it extensively? Any gotchas?
Re:Moving Files from one Git Repository to Another, Preservi... by timtadh on Tuesday May 17, 2011 @07:05PM (#2558341)
I haven't used it enough to really give you any gotchas. It has let me open source some stuff to github really easily though.