I have two websites on plesk, let's call them
I want to create one central git repo hosted on my server.
Then I want split it into two branches,
A folder of
main.com should always pull the changes and
master and on
test.main.com a folder should pull changes from
I managed to get one half of it working, but don't know how to get the second half working for the same repo.
The problem is: In plesk it seems you can only create a git repo for one website, not for two. I thought this is no problem, but I get errors when trying to connect to a git repo from another website.
Does someone know a good solution how to have just one git and deploy two different branches to two different folders automatically?