S
S
scarab2012-08-15 20:11:46
git
scarab, 2012-08-15 20:11:46

Copying a subdirectory to another repository while keeping history?

Dear All, tell me, please:
I'm moving the project from Subversion to GIT. A lot of garbage has accumulated in the original repository, which is unlikely to ever be used, but I want to save it for history. At the same time, work will continue with some projects.
I plan to move everything from SVN to a git repository, put read-only on it and leave it as it is, and create separate repositories for those parts of the project that will continue to be worked on (there are different development teams and different accesses).
Question: is it possible to copy certain directories to new repositories, while preserving their history?
That is, there is trunk/part1, trunk/part2, trunk/part3. The entire trunk is supposed to be stored in RO, in the fromsvn repository, and for part1 and part2, create separate git repositories where work will continue. No work will be done on part3, it will remain as it is.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Push_Ok, 2012-08-15
@scarab

not very beautiful, you can spoil everything in the git and then delete the extra ones and muffle the folder to the root. and so on for all subfolders.
as a result, the git will have a history of all folders - superfluous, but even nothing else comes to mind.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question