I have the following directory structure:
Application/V1
Application/V2
Application/V3
None of these directories are Git repositories. I can also add that each of these directories contain exactly the same files (but the code in these files obviously changes)
From that, I would like to create a new git repository with 3 branches being V1, V2 and V3.
I was thinking of creating a new directory which would contain a .git
file in which I could checkout the 3 git branches (i.e a real Git repo). So, my question is: even if this manipulation is not git-friendly at all, how can I achieve this in an elegant way?