• Plesk Uservoice will be deprecated by October. Moving forward, all product feature requests and improvement suggestions will be managed through our new platform Plesk Productboard.
    To continue sharing your ideas and feedback, please visit features.plesk.com

Resolved Moving a git repository to another domain

Erwan

Regular Pleskian
Hi all,

On a server, we had a development domain with a repositery git.
Domain: dev.mydomain.com
Directory of the domain: dev.mydomain.com/
Git repositery: project.git

We copied the content to the production domain httpdocs.
Domain: mydomain.com
Directory of the domain: httpdocs/

How can we resume the .git on the main domain without reinstalling it? He is present in /var/www/vhosts/mydomain.com/git/project.git but it does not appear in Plesk.
Is there a command to attach the repository to the domain?

Thank you for your help.

Erwan
 
hello @Erwan
Plesk does not support moving of repository to the another domain.
I suggest you to initialize new repo at your production domain, checkout code from dev repo and add another one remote
something like
git remote add myprod ssh://[email protected]:~/git/prjct.git
and push appropriate branch to this remote with command
git push myprod my_production_branch
 
Back
Top