How To Manage Repositories With cPanel Git Version Control

Click Manage to modify or deploy repositories. Click Basic Information to view repository information, or click Pull or Deploy to pull or deploy changes.

 

Basic Information

This section of the interface displays the following repository information:

Item Description
Repository Path

The repository's directory. Click to open the directory for the repository in cPanel's File Manager interface (cPanel >> Home >> Files >> File Manager) in a new browser tab.

Important:

You cannot modify the repository path for existing repositories.

 

Repository Name The repository's display name. To modify this name, enter the new name and click Update.
Checked-Out Branch

The currently checked-out local branch. To check out a different branch, select the desired branch and click Update.

  • If you select a different branch, the system will automatically pull changes from the remote repository when it checks out that branch.
  • If the repository is a bare repository, the system will not display this information.
Currently Checked-Out Branch

The currently checked-out local branch. Click to open the Gitweb interface in a new browser tab.

  • If the repository is a bare repository, the system will not display this information.
  • For more information, read our Gitweb documentation.
HEAD Commit

Note:

If the repository does not include any commits for the current branch or is a bare repository, the system will not display this information.

This section of the interface displays the following information about the active branch's HEAD commit (the most recent commit to the branch):
  • Commit — The SHA-1 value for the HEAD commit.

  • Author — The HEAD commit's author.
  • Date — The date of the HEAD commit.
  • The commit message for the HEAD commit.

Click History to open the Gitweb interface in a new browser tab. For more information, read our Gitweb documentation.

Remote URL The URL of the repository's remote repository.
Clone URL The URL to use to clone the repository to another location (for example, your local computer, another cPanel account, or a GitHub account). Click Copy to copy this URL to your clipboard.

 

Pull or Deploy

This section of the interface displays the following repository information:

Item Description
Repository Path

The repository's directory. Click to open the directory for the repository in cPanel's File Manager interface (cPanel >> Home >> Files >> File Manager) in a new browser tab.

Important:

You cannot modify the repository path for existing repositories.

Remote URL The URL of the repository's remote repository.
Currently Checked-Out Branch

The currently checked-out local branch. Click to open the Gitweb interface in a new browser tab.

  • If the repository is a bare repository, the system will not display this information.
  • For more information, read our Gitweb documentation.
HEAD Commit

Note:

If the repository does not include any commits for the current branch or is a bare repository, the system will not display this information.

This section of the interface displays the following information about the active branch's HEAD commit (the most recent commit to the branch):

  • Commit — The SHA-1 value for the HEAD commit.

  • Author — The HEAD commit's author.
  • Date — The date of the HEAD commit.
  • The commit message for the HEAD commit.

Last Deployment Information

Note:

If you have never deployed this repository, the system will not display this information.

This section of the interface displays the following information about the most recent deployment of the repository:

  • Last Deployed on — The date of the deployment.

  • Last Deployed SHA — The SHA-1 value for the deployed commit.

  • Author — The deployed commit's author.

  • Commit Date — The date of the deployed commit.

  • The commit message for the deployed commit.

Update from Remote

Click to pull changes from the remote repository and apply them to the cPanel-managed copy of the repository. The system pulls changes with the --ff-only option and will only succeed if the branch's HEAD commit is up-to-date or Git can fast forward it.

Deploy HEAD Commit

Important:

We strongly recommend that you only deploy changes from a remote repository or a clone of it on your local computer. You should not directly change the cPanel-managed repository's contents. For more information about our suggested deployment configuration and how to set it up, read our Guide to Git - How to Set Up Deployment documentation.

Click to deploy changes from the cPanel-managed repository. Deployment requires a .cpanel.yml file and at least one local or remote branch.

  • The system runs the tasks that you configure in the.cpanel.ymlfile in order to deploy the repository.
  • We strongly recommend that you check the .cpanel.yml file in to your remote repository and not the cPanel-managed repository.
  • The system cannot deploy changes for repositories with dirty working trees.
  • Git, Github, Gitweb
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How You Can Host Git Repositories on Your cPanel Account

cPanel is working to release version control using Gitweb that ships with Git and will be either...

What is cPanel Git Version Control?

cPanel Git Version Control is designed to make hosting repositories as easy for developers as a...

Using Gitweb & cPanel Git Version Control

Along with cPanel Git Version Control is another great application that’s developed by Git called...

How To Set Up Git In cPanel

Git’s extremely useful when you configure it to transfer content between a local and remote...

Common Git Commands You Can Use with cPanel's Git Version Control

You can access all of Git™'s functionality via the command line. This document lists common...