How to use Git with Plesk

Setting up a remote repository

You can configure a remote Git repository in the Plesk and pull files to your site. To do this, follow these steps:

1.    Sign in to Plesk.

If you do not know how to sign in to your Plesk account, please see this article.

2.    In the left sidebar, click Websites & Domains:

3.    Locate the domain you want to configure, and then click the Git icon:

4.    On the Add Git Repository page, confirm the Remote Git hosting like GitHub or BitBucket option is selected:

5.    In the Remote Git repository text box, type the URL where the remote repository is hosted:

Plesk supports HTTPS and SSH protocols for Git.

6.    To select the deployment mode, click automatically deployed, select the mode you want, and then click Ok.

7.    To select the deployment directory on your site, click /httpdocs/, select the local directory you want to use, and then click Ok.

8.    Click OK. Plesk clones the remote repository in to the local directory you mention in step 7.

To insert the updates from the remote repository, click on the option Pull Updates.

Creating a local repository

You can create a local Git repository in the plesk. To do this, follow these steps:

1.    Log in to Plesk.

If you do not know abou the login process of the Plesk account, please check this article.

2.    In the left sidebar, click Websites & Domains:

3.    Locate the domain you want to configure, and then click the Git icon:

4.    Click Add Repository.

5.    Select Local repository on your workstation:

6.    In the Git Repository in Plesk text box, type the name of the new repository:

7.    To select the deployment mode, click automatically deployed, select the mode you want, and then click Ok.

8.    To choose the deployment directory on your site, click /httpdocs/, and choose  the local directory option that you want to use, and then click Ok.

9.    Click OK. Plesk creates the local repository.

Editing repository settings

To modify the settings of an existing repository option in the Plesk account, follow these steps:

1.    Sign in to Plesk.

If you do not know about the process of login in the Plesk account, please check this article.

2.    In the left sidebar, click Websites & Domains:

3.    Locate the domain you want to configure, and then click the Git icon:

4.    Locate the Git repository you want to edit, and then click Repository Settings:

5.    On the settings page, make Change as desired, and then click OK. Plesk updates the settings.

 


Was this article helpful?

mood_bad Dislike 0
mood Like 0
visibility Views: 84