How to add repositories with Git to Plesk

From EN Ikoula wiki
⧼vector-jumptonavigation⧽ ⧼vector-jumptosearch⧽

en:How to add repositories with Git to Plesk fr:How to add repositories with Git to Plesk

Accessing the Git extension within your Plesk platform

In order to add the Repository to your Plesk please click on "Git" option in the main dashboard of Plesk, check photo from below. (red arrow & red rectangle)

GIT-ENG-1.JPG



To add a Git Repository you have to choose between the two options available, "Remote Repository" / "Local Repository". In this example, I'm gonna choose the remote one using Github. (see photo attached below) Inside the "Remote Git Repository" bar, you must paste the link of your Github repository. To find the link of your Github repository, please check the photo from below. Also, before downloading the repository from Github, you must copy the SSH (the SSH key will be automatically generated after you paste the link of your Github repository inside the bar) and paste it within your own Github account, inside the SSH section. (see photo from below.




GIT-ENG-2.JPG]


GIT-ENG-3.JPG]


GIT-ENG-4.JPG]


To add the SSH key, click on "New SSH Key" and paste the key inside the box.

GIT-ENG-5.JPG]


After the SSH key was added to your Github account, you can continue the process of adding the repository to your Plesk platform. The process depending on the size of your repository can take up from 3 seconds to a couple of minutes. When the repository was added, it should look like the one from the photo below.

GIT-ENG-6.JPG]


If you've added updates to the repository on Github, you can "Pull" those updates to Plesk using the "Pull Updates" option that you have available within your main Plesk dashboard. (see photo attached)

GIT-ENG-4.JPG]