Back to knowledgebase

How to Use Git Version Control in cPanel

Git Version Control screen in cPanel

Create a Repository

  1. Go to Files > Git Version Control.
  2. Click Create.
  3. Turn on Clone a Repository if you want to clone an existing remote repository.
  4. Enter the clone URL if you are cloning.
  5. Enter the repository path.
  6. Enter a repository name.
  7. Click Create.

Manage a Repository

  1. Go to Files > Git Version Control.
  2. Find the repository.
  3. Click Manage.
  4. Use the available options to view deployment settings, history, or repository details.

Pull Changes

  1. Go to Files > Git Version Control.
  2. Open Manage for the repository.
  3. Click Update from Remote if the option is available.
  4. Wait for cPanel to finish the update.

Delete a Repository

  1. Go to Files > Git Version Control.
  2. Find the repository.
  3. Click Delete.
  4. Confirm the deletion.

Notes

  • Do not edit repository files in File Manager unless that is part of your workflow.
  • Make sure the repository path is correct before creating it.
  • Some Git deployment options depend on how the server is configured.