I'm trying to find out if it's possible to share the same repository between two projects with Git/SourceTree.
I have a two sites with their own repos, both have a plugins folder. Currently, any changes I apply to one plugin, i have to do the same to the plugin on the other site.
I've now created a 3rd repo just for my plugins (i.e. plugFolder1/2/3), I've not included file1.asp, file2.asp, .gitIgnore as they are unique to the site. This structure cannot be changed.
Is it possible to share my plugins repo and pull its content to siteA/B plugins folders. That way I can make changes to my plugins in their receptive site and commit the changes back to the plugins repo for the other sites to pull.
I've looked into submodule and subtree, when I try to add them via SourceTree, I don't understand how I'm able to pull the content from my plugins repo into my site plugins folder.
I have never used any complex stuff within GIT and I don't want to do it wrong. Thank you in advance.
Current setup
SiteA > plugins .gitIgnore file1.asp file2.asp plugFolder1 plugFolder2 plugFolder3 SiteB > plugins .gitIgnore file1.asp file2.asp plugFolder1 plugFolder2 plugFolder3
Expected setup
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.