Economicalhost · Knowledge Base
Knowledge Base › Files & Backups › How to Use Git Version Control in cPanel
Files & Backups

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

  1. Open Files → Git Version Control in cPanel.
  2. Click Create to make a new repository.
  3. Clone an existing repo by entering its URL, or create an empty one to push to later.
  4. Set the repository path (where files live on the server) and a name.
  5. Use SSH for pushing — set up an SSH key so you can push from your computer securely.
  6. 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.