How to Use Git Version Control in cPanel
cPanel's Git Version Control lets you host repositories and deploy code on the server — handy for developers who want version control and easy deployment.
Step-by-step
- Open Files → Git Version Control in cPanel.
- Click Create to make a new repository.
- Clone an existing repo by entering its URL, or create an empty one to push to later.
- Set the repository path (where files live on the server) and a name.
- Use SSH for pushing — set up an SSH key so you can push from your computer securely.
- Configure deployment with a .cpanel.yml file in the repo so cPanel deploys your code to the document root on each pull.
💡 Good to know
- Git access usually needs shell/SSH enabled — ask EconomicalHost support if the tools are missing.
- A .cpanel.yml file controls what gets deployed where — keep it accurate.
- Version control plus deployment makes rolling back a bad change trivial.