Git is a Version Control System that can be used to track changes in any file and is commonly used to develop software. While it is mainly designed to coordinate work among programmers, it can also be used to track changes in any set of files.
Deployment
Git deployment on hPanel uses GitHub OAuth, allowing you to connect your GitHub account and deploy directly from your repositories — no SSH key setup required. You can deploy PHP files, WordPress websites, and similar projects using this integration.
If you wish to deploy a Git repository, find your target site in the Websites section and click on Manage next to it.
Then, search for Git on the left sidebar and click on the result:

You’ll see the “Deploy from GitHub” screen. Click Continue with GitHub to connect your GitHub account via OAuth.

Once connected, you’ll be prompted to select a repository to import. You can search by name, select the one you want to deploy, then click Next.
On the next screen, confirm your deployment settings:
- Repository — pre-filled from your selection

- Branch — select which branch to deploy (defaults to main)
- Root directory — defaults to public_html
Once everything is filled accordingly, click Deploy.

Once deployment is complete, you’ll see a confirmation screen. Click Go to dashboard to return to the Git overview.

From the Git overview, you can:
- See your connected repository and GitHub account
- Check auto-deployment status — any changes merged into the main branch will trigger a new deployment automatically
- Click Redeploy to manually trigger a deployment
- View all past deployments under the Deployments tab, including branch, commit, time, and status

- Click the three-dot menu → Disconnect from repository if you want to change the repository you’re deploying from. Note that newly deployed files will overwrite existing ones.
