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
- Log in to cPanel and find the Files section.
- Click on Git Version Control.
- Click Create.
- 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.
- Set the Repository Path to where you want the repo to live on your server (e.g.,
/home/username/myapp). - 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 directorygit add .- Stage all changesgit commit -m 'Your message'- Commit staged changesgit 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
