How to Set Up Git in cPanel

dotCanada's cPanel includes built-in Git Version Control, allowing you to create and manage Git repositories right from your hosting account. This makes it easy to track changes, collaborate with your team, and deploy code.

Creating a Repository in cPanel

  1. Log in to cPanel and find the Files section.
  2. Click on Git Version Control.
  3. Click Create.
  4. If you're starting fresh, leave Clone a Repository unchecked. To clone an existing remote repo (like from GitHub), check this option and enter the repository URL.
  5. Set the Repository Path to where you want the repo to live on your server (e.g., /home/username/myapp).
  6. Give your repository a name and click Create.

Working with Your Repository

Once created, you can interact with the repository via SSH or the cPanel Terminal. Common Git commands include:

  • git status - View the current state of your working directory
  • git add . - Stage all changes
  • git commit -m 'Your message' - Commit staged changes
  • git log - View commit history

Pulling Changes

In cPanel's Git Version Control panel, click Manage next to your repository, then click Pull or Deploy to fetch and apply the latest changes from a remote source.

If you need help setting up version control for your project, contact our support team - we're always glad to help.

100% Satisfaction Guarantee

We're so confident you'll love dotCanada that we offer a 30-day money-back guarantee. Not satisfied? Get a full refund, no questions asked.

Ready to Get Started?

Join thousands of Canadian website owners who trust dotCanada for reliable, fast web hosting.

Get Started Today