I have a git repository with different folders. By mistake I made a git init within one and continued working as if nothing happened, but saving the modifications in a subdirectory of the main program. Now I have two different git, each of them with a different branch Master and Branch and I would like to do a merge keeping only the initial git without having to give up all the commits of the younger git. A scheme would be:
- Program:
- .git
- Directory
- .git
- Codes
I would be very grateful if someone knew how to fix it. Greetings!