Skip to content
  • Solutions
    By Role
    • For Developers
    • For Content Managers
    • For Agencies
    • For IT Admins
    • For Web Hosters
    • For Developers
    • For Content Managers
    • For Agencies
    • For IT Admins
    • For Web Hosters
    By Infrastructure
    • Overview
    • AWS
    • Microsoft Azure
    • Alibaba Cloud
    • Google Cloud Platform
    • Vultr
    • Overview
    • AWS
    • Microsoft Azure
    • Alibaba Cloud
    • Google Cloud Platform
    • Vultr
    • Digital Ocean
    • Linode
    • Upcloud
    • Oracle
    • OVH
    • Digital Ocean
    • Linode
    • Upcloud
    • Oracle
    • OVH
  • Product
    • Plesk Features
    • Plesk Editions
    • What’s new
    • Pricing
    • Roadmap
    • Lifecycle Policy
    • Extensions Catalogue
  • Pricing
  • Extensions
    Featured Extensions
    • SocialBee
    • WP Toolkit
    • Sitejet Builder for Plesk
    • SEO Toolkit
    • Joomla! Toolkit
    • Premium Email
    • Email Security
    • SocialBee
    • WP Toolkit
    • Sitejet Builder for Plesk
    • SEO Toolkit
    • Joomla! Toolkit
    • Premium Email
    • Email Security
    Bundles and packs:
    • Business and Collaboration Edition
    • WP pack
    • Hosting pack
    • Power pack
    • Language pack
    • Business and Collaboration Edition
    • WP pack
    • Hosting pack
    • Power pack
    • Language pack

    See all Extensions

  • For Partners
    • Plesk Contributor Program
    • Plesk Partner Program
    • Affiliate program
    • Plesk University
  • Help Center
    • Documentation
    • Professional Services
    • Support
    • Contact Us
    • Wiki
    • Forum
  • Plesk 360 login
  • Free Trial
  • Pricing
  • Solutions
    • By Role
      • For Developers
      • For Content Managers
      • For Agencies
      • For IT Admins
      • For Web Hosters
    • By Infrastructure
      • Overview
      • Plesk on Amazon Web Services (AWS & Lightsail)
      • Microsoft Azure
      • Alibaba Cloud
      • Google Cloud Platform
      • Vultr
      • DigitalOcean
      • Linode
      • UpCloud
      • Oracle
      • OVH
  • Products
  • Pricing
  • Extensions
    • Featured Extensions
      • SocialBee
      • WP Toolkit
      • Sitejet Builder for Plesk
      • SEO Toolkit
      • Joomla! Toolkit
      • Premium Email
      • Email Security
    • Bundles and packs:
      • Business and Collaboration Edition
      • WP pack
      • Hosting pack
      • Power pack
      • Language pack
      • See all Extensions
  • For Partners
    • Plesk Contributor Program
    • Plesk Partner Program
    • Affiliate Program
    • Plesk University
  • Help Center
    • Documentation
    • Professional Services
    • Support
    • Contact Us
    • Wiki
    • Forum
  • Plesk 360 login
  • Free Trial
  • Pricing
  • Solutions
    • By Role
      • For Developers
      • For Content Managers
      • For Agencies
      • For IT Admins
      • For Web Hosters
    • By Infrastructure
      • Overview
      • Plesk on Amazon Web Services (AWS & Lightsail)
      • Microsoft Azure
      • Alibaba Cloud
      • Google Cloud Platform
      • Vultr
      • DigitalOcean
      • Linode
      • UpCloud
      • Oracle
      • OVH
  • Products
  • Pricing
  • Extensions
    • Featured Extensions
      • SocialBee
      • WP Toolkit
      • Sitejet Builder for Plesk
      • SEO Toolkit
      • Joomla! Toolkit
      • Premium Email
      • Email Security
    • Bundles and packs:
      • Business and Collaboration Edition
      • WP pack
      • Hosting pack
      • Power pack
      • Language pack
      • See all Extensions
  • For Partners
    • Plesk Contributor Program
    • Plesk Partner Program
    • Affiliate Program
    • Plesk University
  • Help Center
    • Documentation
    • Professional Services
    • Support
    • Contact Us
    • Wiki
    • Forum
  • Plesk 360 login
  • Free Trial
Plesk 360 login
Free Trial

Knowledge Base

Using a Local Repository – Create a Git Repository

 
git supportreseller guideusing a local repositorywebsite managementdeployment

To create a new Git repository for your domain, go to Websites &
Domains
> Git. If you have already created Git repositories for
your domain via Plesk, click the Add Repository button. You will see
the screen for creating a new repository:

image 76903

First, you have to select where your code is stored. In this scenario,
select Local repository on your workstation.

Git Repository in Plesk. Specify the repository name. By default,
the name of the domain is used with the .git suffix.

In the Your Website section, specify the following:

  • The deployment mode. By default, the Automatic deployment is
    used. This means that all changes pushed to the Git repository will
    be automatically deployed to the production site. If you want to
    change the deployment mode, click the automatically deployed link
    and select another option in the opened Deployment Mode window.
    If Manual deployment is selected, you will need to manually
    deploy files from the Git repository to your hosting. If No
    deployment
    is selected, the files will not be deployed to the
    production site (this may be used, for example, for code storing and
    exchange).

    image 76254

  • A target directory for publishing Git files on your website. By
    default, the /httpdocs directory is used. You can change it to
    another existing directory by clicking the directory name.

    image 76255

Click OK. The new repository will be created and displayed on the
Git page.

image 76904

The displayed repository URL depends on the data transfer protocol that
you use. You can select one of the following protocols:

  1. SSH (on Linux only) - This protocol is used by default if SSH web
    hosting access is enabled for the domain. To set SSH access to the
    domain, go to Websites & Domains > Web Hosting Access and in
    the Access to the server over SSH menu select /bin/bash or
    /bin/sh. In this case, the repository URL appears as
    [email protected]:~/repos/example.git.
  2. HTTPS - This protocol is used by default if SSH web access is
    forbidden, and SSL/TLS is configured for a domain (Hosting
    Settings>SSL/TLS support
    ). In this case, the URL appears as
    https://[email protected]/plesk-git/example.git.
  3. HTTP - This protocol is used by default if SSH web access is
    forbidden, and SSL/TLS is not configured for a domain. In this case,
    a repository URL will appear as
    http://[email protected]/plesk-git/example.git.

Follow the instructions available from the Help link to initialize
the local repository.

image 76905

When the repository is initialized, you can see the commit information
and the active branch name at Websites & Domains > Git. By
default, the master branch is used to work with Plesk. You can add
more branches later (see the Change Branch or
Path
section).

image 76911

Now you can commit your web site files from your local repository and
push them to the server repository.

Tweet
Share
Share
Email
0 Shares
Read the full article
Related Posts

Guide on Website Management

Read More »

Plesk Obsidian Preview: The Curtain Lifts

Read More »

Website Management Routine Basics

Read More »
Knowledge Base

Using remote Git hosting – Use Webhooks for Automatic Pull

Read More »

Using remote Git hosting

Read More »

Managing Web Hosting – Setting the Default Homepage

Read More »

Managing Web Hosting – Setting MIME Types

Read More »

Hosting Wiki

  • GIT
  • Server Redundancy
  • Linux Containers
  • GitHub
  • Bare Metal Server
  • Oracle VM Server
  • Server Virtualization Software
  • Windows Server
  • Linux
  • HTTP/3
  • HTTP/2
  • Domain
  • Hosting Control Panel
  • Lighttpd
  • Web Server
  • DNS Server
  • SSL
  • SSH
  • URL
  • Colocation Hosting
  • Reseller Hosting
  • Cloud Hosting
  • VPS Hosting
  • Dedicated Hosting
  • Shared Hosting
  • Free Hosting
  • Managed Hosting
  • HTTP
X-twitter Linkedin Youtube Reddit Github
  • Product
  • Login
  • Pricing
  • Editions
  • For Partners
  • Partner Program
  • Contributor Program
  • Affiliate Program
  • Plesk University
  • Company
  • Blog
  • Careers
  • Events
  • About Plesk
  • Our Brand
  • Resources
  • User and Admin guides
  • Help Center
  • Migrate to Plesk
  • Contact Us
  • Hosting Wiki
  • Forum
  • Legal
  • Legal
  • Privacy Policy
  • Imprint

© 2025 WebPros International GmbH

Part of the WebPros®  Family