Hi all!
I have done an app for a client called 'A' (not really).
I have found out that it is very cool and that I want to sell it to other clients also. The directory 'A' is a Git repository. I think I have a problem with cloning it. As far as I can see I need to make a copy of the dir 'A' and call it 'Generic_A'. Then delete the dir 'A' and do a "git clone Generic_A A" Then I could start changing the 'Generic_A'-repo with a generic design and all client references removed. But that is kind of the other way around. I should have started doing the generic design and then cloned the repo to change to the client specific design.
Can I:
- make a new branch
- do all the changes to make the design generic
- create a patch that reflects the changes between the two
- remove the client specific branch
- rename the directory to 'Generic_A'
- clone the repo to a new dir 'A'
- apply the patch to get the client specific stuff back
And if yes - how do I make the patch and apply it?
Regards,
Jacob