Plesk has an extension with which we can connect our Plesk with our Git and choose the branch and when we want to perform a pull of files.
The main advantage of this extension:
Easy integration with our panel.
Ability to choose the branch we want to deploy.
We can see the last annotation of the last pull.
Ability to define when we want a pull to be performed, whether manually or automatically.
To connect our Plesk with Git, first, it is necessary to access our Plesk panel and go to the subscription we want to configure.
Once in the subscription, we click on the Git icon.
In the next window we can choose the protocols, currently, it supports both HTTPS and SSH.
We will explain the difference between the different protocols.
HTTP: If the repository is public, we only have to enter the url and we can pull, this option only works if they are public repositories.
SSH: When using SSH it will create an RSA from our Plesk for which we will have to add to the repository or to our account so that our Plesk can connect.
This way we can connect with private or hidden repositories.
Here we leave an image of where we should add our RSA.
Once connected, we will see it like this.
By clicking on the name of the repository, we can see the different options that Git offers us in Plesk.
In addition, when we install the extension, we can enjoy the different Git commands by SSH.