• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.

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