Using Git Version Control in StackCP

Author:

Published:

Updated on July 8, 2025

Reading Time: 1 min read

StackCP features a user-friendly interface to manage your Git repositories directly from your hosting control panel. You can easily clone remote repositories, manage versions, and deploy your websites with a single click.

How to Access the Git Tool #

  1. Log in to your StackCP account and navigate to the Manage Hosting area.
  2. Choose the hosting package you want to work with and select Options > Manage.
  3. Under the Web Files section, click on Git™ Version Control.
  4. You’ll be asked for a name and email address. This information will be used to identify your commits. Enter your details and click Enable.

You can now view your repository list and add your first project.

Cloning a Remote Repository #

To clone an existing repository from a service like GitHub:

  1. Go to your remote repository’s page and copy its URL.
    • For public repositories, use the standard HTTPS URL.
    • For private repositories, you must first set up an SSH key pair and use the SSH URL.
  2. In StackCP, paste the address into the Clone URL field.
  3. Set the File Path where you want the repository’s files to be stored on your hosting package.
  4. Enter a Repository Name for easy identification in the StackCP interface.
  5. Click Create.

Your repository will now appear in the list. You can use the menu (three dots) to manage it, view its history, or open its files in the File Manager.

Managing a Repository #

After setting up a repository, you can manage it using several tabs:

  • Basic Information: View and update general information about your repository.
  • Pull or Deploy: Fetch updates from the remote source or deploy your changes to the live site. To push your latest changes, click Deploy HEAD Commit.
  • History: Review a complete log of all deployments and changes made through Git.

Creating a Local Repository #

If you prefer to use Git for version control without connecting to a remote service, you can create a local repository directly within your hosting space.

  1. Select Create New Repository and open the Local Repository tab.
  2. Fill in the required fields:
    • Repository Path: The folder where the repository will be initialized.
    • Repository Name: A display name for the UI.
    • Deployment Type: Choose whether changes are deployed automatically or only when you manually click the deploy button.
    • Deployment Branch: Specify the Git branch (e.g., main or master) you want to deploy from. This allows you to work on different versions of your code without affecting the main codebase.