I have two websites on plesk, let's call them
main.com and test.main.com
I want to create one central git repo hosted on my server.
Then I want split it into two branches, main and dev.
A folder of main.com should always pull the changes from main and on test.main.com a folder should pull changes from dev.
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?

cronjob if I needed to keep it up to date automatically on a schedule.