Get 30% off your WordPress Hosting with code WPSAVE10. Launch Faster. Save More!
  • 00 Days
  • 00 Hours
  • 00 Minutes
  • 00 Seconds

How do I use Git version control in SIRSTEVEHQ CP?

SIRSTEVEHQ CP includes a graphical user interface to manage Git™ version control.

You can clone, manage and deploy Git repositories directly. You're able to manage multiple repositories in one package, allowing you to keep track of version changes and deploy your sites as and when you’d like - at the click of a button.

To access this tool:

  • Log into SIRSTEVEHQ CP.
  • Select Options > Manage on the hosting package you’d wish to edit.
  • Under the Web Files area, you should see the option for GitTM Version Control – select this option.

gitwebfiles.png

  • You’ll be prompted to enter manually or sign in to GitHub via single-sign-on. For a name and email – set these to be the name and email you’d like to show when deploying using Git, and select Enable.

image_134f1ea825.png

You'll then see your current repository list, and see options to set up your first repository.

image_f7b0aa70c6.png

Cloning a Git repository

Cloning a repository via the tool requires you to first create a remote repository using GitHub, following the steps highlighted in their documentation.

Once done, head to the repository and copy the URL by selecting Code, then copying the URL provided without the SSH protocol included.

giturl.png

Note: For private repositories, you'll need to set up a public/private key pair and use the SSH URL provided instead.

Once you have the URL above, paste it into the Clone URL area, then set the file path of where you want your repository to set up. Lastly, set up a Repository Name - this is purely a display name for the UI itself.

Then, hit Create. Once done, your repo should show in the list like this:

image_617bfb3f6d.png

You can then use the Options button to manage the repository, view the history, access files directly via File Manager, copy the URL, or remove the repository from the list.

image_5fc6c29304.png

Managing a repository

Managing a repository allows you to check and update information about the repo itself. You can do so via the Basic Information tab:

image_01c8845551.png

You can also pull or deploy changes to the repo using the Development tab. Select Deploy HEAD Commit to deploy the changes you've made to your repository directly.

image_256dd66f9f.png

You can use the History tab to see what changes have been deployed in the history of the Git setup.

Creating a local repository

If you don't want to deploy to a remote repository, and instead simply use a local one in your package’s file space, you can set this up via the UI too. To do so, select Create New Repository and then hit the Local Repository tab.

image_efc67d0536.png

You can then fill out the fields to choose the folder you'd like the repository to be in, the name, as well as selecting the Deployment Type and Deployment Branch.

The type defines whether or not you want automatically to deploy changes, or if you want to only deploy your changes when manually selecting the Deploy button.

The branch is what Git branch you want to deploy these changes to. You can have multiple branches of development to work from if you want to make tweaks to the code without affecting your repository's main codebase.

git-version-control.png

More information on branches is available here: Using Git Branches.

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How do I install NodeJS on my SIRSTEVEHQ Cloud?

NodeJS is a server-side Javascript runtime environment which aims to assist in the building of...

How do I deploy a .NET Core application on a SIRSTEVEHQ Cloud?

Deploying a .NET Core application through the Application Manager is quick and easy. Before you...

How do I get started on SIRSTEVEHQ Cloud?

Unlike an unmanaged virtual private server (VPS) setup, our SIRSTEVEHQ Cloud platform is...

How many websites can I host on SIRSTEVEHQ Cloud?

With any SIRSTEVEHQ Cloud package, you can host as many websites as you like. You're in control...

Do I get email with SIRSTEVEHQ Cloud?

Yes. With SIRSTEVEHQ Cloud you can take full advantage of our high-end clustered email platform....