I have a personal project that I want to version control, but I'm not sure how I should use git to manage it. Below is an example of the folder structure:
project
project/public/plugin1
project/public/plugin2
project/lib/plugin1
project/lib/plugin2
I was going to create individual repositories for each plugin or module, but it seems a bit tricky because not all files of the plugin are grouped together under the same folder. So I'd need to track these directories as plugin1:
project/public/plugin1
project/lib/plugin1
And similarly for plugin2:
project/public/plugin2
project/lib/plugin2
In the public folder is files such as css and js, so you could say the more important files are the ones in lib. Should I set the repository in that folder and somehow try to add the external public folder? But of course git won't let me do that. I've already tried this from another question as well:
git --work-tree=/ add /project/public/plugin1
I still get an error saying it's outside the repository.
As this is just a personal project I have no need to access or do anything remote, which hopefully removes some complications. Any ideas on the correct way to set this up? Thanks.