How to Manage Git Repositories in cPanel
cPanel includes a Git Version Control tool that lets you create and manage Git repositories directly on your hosting account. This is useful for deploying code to your server, keeping track of changes, and pulling updates from a remote repository like GitHub or GitLab.
Accessing Git Version Control
- Log in to cPanel at
yourdomain.com/cpanel. - Go to the Files section and click Git Version Control.
Creating a New Repository
- Click Create.
- Toggle on Clone a Repository if you want to pull from a remote source like GitHub, or leave it off to create a fresh local repository.
- If cloning, enter the Clone URL (the HTTPS or SSH URL of your remote repo).
- Set the Repository Path - this is where the files will be stored on the server (e.g.,
/home/yourusername/myproject). - Give the repository a Name for easy identification.
- Click Create.
Deploying Updates
Once a repository is set up, you can pull the latest changes from the remote by clicking Update from Remote in the repository management screen. This is useful for deploying new code versions to your server without using FTP.
Connecting via SSH
For full Git functionality - including pushing and pulling from the command line - you'll want to connect via SSH. Make sure SSH access is enabled on your dotCanada account and use an SSH key for authentication.
If you need help setting up Git version control on your dotCanada hosting account, please contact our support team.
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
