On Oct 24, 2010, at 8:20 AM, Cliff <clifford.me...@gmail.com> wrote:

Hi,

I've been using git successfully on a project and now I realize that I
want to expand the directories under git control.  In particular, I
realized that I want to 'step one level back' and include the parent
directory of my current repo, so that the new repo will have the
current directory as a child, and all the sibling directories will
also become part of the repository.  What is the easiest way to
accomplish this while maintiaining my repository history?

I'm pretty sure you can do this with git-subtree. You can find it on github. The basic steps would be to create a new repo for the top- level and then subtree-merge the existing history into a subdirectory.



Specifically, I have a directory 'abcd'.  Under that I have 'models',
'forms', 'pages'.  'Currently only 'pages' is in git.  Now I want
'abcd' and everything under it in git.

Thanks,

--
You received this message because you are subscribed to the Google Groups "Git for human beings" group.
To post to this group, send email to git-us...@googlegroups.com.
To unsubscribe from this group, send email to git-users+unsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/git-users?hl=en .


--
You received this message because you are subscribed to the Google Groups "Git for 
human beings" group.
To post to this group, send email to git-us...@googlegroups.com.
To unsubscribe from this group, send email to 
git-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/git-users?hl=en.

Reply via email to