Y
Y
yeleleo2014-01-26 02:13:10
git
yeleleo, 2014-01-26 02:13:10

Git: Submodule selection in working project?

We have:
An overgrown project with a bunch of directories and a long history of changes.
Tasks:
1. Select one of the directories into a separate git-submodule;
2. Save the entire history of changes in the files of the new submodule.
In other words, there is a big project and the task is to give access to one of the directories to a new user without access rights to the main turnip.
Tell me how to solve this problem most painlessly and with the preservation of the entire development history.
Now I came up with only a crutch - a complete copy of the {1}.git repository , deleting all other folders from the {1 copy}.git copy and initializing {1 copy}.git with only the necessary files in {1}.gitas a submodule. This solution still preserves essentially the history of the entire project, and therefore access. When using this crutch, it will still be necessary to somehow “bang” the history of secure files, this is the topic of a separate ticket.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
egor_nullptr, 2014-01-26
@yeleleo

Create a submodule repository from a folder and ke...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question