SPONSORED The best hosting optionReview
Plesk/CPanel

How to Manage Git in Plesk Panel?

1 Mins read

Plesk Panel offers a range of tools and features to simplify the management of websites. One of these features is Git support. Git is popular as a version control system and is widely used by web developers. Git management in Plesk Panel can be performed with the following steps:

Installing the Git Extension

If the Git extension has not been previously installed in Plesk, you first need to install this extension.

  • Log in to Plesk.
  • Go to the “Extensions” tab from the left menu.
  • Click on the “Extension Catalog” option.
  • Search for “Git” in the search box, find the relevant extension, and install it.

1.  Adding a Git Repository

  • In the Plesk main panel, select the relevant website.
  • Click on the “Git” tab. Select the “Add Repository” option.
  • Fill in the repository name, path, and other information, and press the “OK” button

2.Synchronizing with a Remote Repository:

Plesk allows easy synchronization with remote Git repositories (for example, repositories in services like GitHub or Bitbucket).

  • Select the repository you have created or added.
  • From the “Remote Repository” section, enter the repository URL and other necessary information.
  • If you need a special key, also add this key to the relevant field.

3. Automatic Deployment (Auto Deploy)

Plesk Panel offers the “Auto Deploy” feature to automatically deploy your code to your website after every push operation.
  • Go to the repository settings.
  • Enable the “Automatic Deployment” option.
4.Repository Management
  • Through the Plesk Panel, you can update the repository, revert to previous versions, or completely delete the repository.
  • For these operations, select the relevant repository and use the options in the top right corner.

Conclusion: Git management in Plesk Panel helps you easily track the versions of your website and rapidly deploy code changes. However, if you wish to utilize more in-depth features of Git, you may need to turn to the command line or other Git tools.