Keep your code organized and deploy updates with just a few clicks
Go to:
Log in using your Plesk credentials.
In the left menu, click Websites & Domains
Find the domain or subdomain where you want to set up Git
Click the Git icon (if it's not there, your host may need to enable the Git extension)
Plesk gives you two options:
Option | Use When… |
---|---|
Remote Git repository (e.g., GitHub) | You push changes from GitHub to Plesk |
Local Git repository (on server) | You pull changes into Git from your PC using SSH |
Choose the one that matches your setup.
In the Git settings window, choose Remote Git hosting
Paste your repository’s clone URL from GitHub
Example:
Choose the branch you want to deploy from (usually main
or master
)
Set the deployment path, e.g., /httpdocs/
if it’s your main site
SSH Key Setup (one-time):
Plesk will give you an SSH key
Add this key to your GitHub repo’s Deploy Keys section
Check the box:
"Automatically deploy once a push is received"
This way, every time you push changes to your Git repo, Plesk will update your live site automatically.
Make a small change to your code (e.g., update a heading or text)
Push it to your GitHub repo
Go to Websites & Domains > Git, and confirm it deployed
Visit your site and refresh to see the update
In the Git tab, you can:
View commit history
Trigger manual deployment
Switch branches
Disconnect the repo
Benefit | Why It Helps |
---|---|
Version control | Track and roll back changes if needed |
Automatic deployment | No need to manually upload via FTP |
Team collaboration | Multiple people can work on the same project |
Safety | Keeps your live site in sync with your codebase |
SSH errors? Make sure you added the public key Plesk shows to GitHub/Bitbucket
Deployment not working? Check branch name, repo permissions, and deployment path
Scripts not executing? Check file permissions after deployment