There were some similar projects (projA and projB), which was developed separately and had similar files in it. No VCS was used.
After time, some 'library' (let's call it
lib directory) same for both projects was developed. And git usage was started.
Now, I can't understand, what git functionality I have to use to? Submodule? Subtree? Something else?
The task is: track
lib separately. But use it for
projB and other projects. And I want to 'git' older files of projects, where there were no separate
lib. This need to support different versions of
projB - how it can be done with git? If possible - with some examples.