Websites
Deploy a website from Git
Connect a public Git repository to a website and publish the latest version of a branch with one button.
On this page
If your website's code lives in a Git repository, Git deploy can copy it onto your site for you. You save the repository once, then press Deploy now whenever you want the site to match the latest version of your branch. No SFTP upload is needed.
Before you start#
- Add the website in the panel.
- The repository must be public and reachable over
https://, for example on GitHub, GitLab, Bitbucket or any other Git host that offers https addresses. Private repositories are not supported yet; upload those with SFTP instead. - The repository must contain the finished files your site serves. Build steps such as
npmorcomposerdo not run on FiniteHost, so commit the built files (for example yourdistfolder, or thevendorfolder for PHP).
Connect a repository#
- Open Git deploy. In the panel menu, under Software, choose Git deploy, and pick the website.
- Enter the repository address, for example
https://github.com/acme/website.git. Do not put a user name or token in the address. - Enter the branch. It is
mainunless you type another one. - Choose the folder. It must be under
sites/<your domain>/. It issites/acme.in/publicunless you change it, which is your site's web root. - Press Save repository.
Deploy#
- Press Deploy now.
- First deploy: the repository is copied (cloned) into the folder. The folder must be empty; a single placeholder
index.htmlis fine. - Later deploys: the latest version of the branch is fetched and the folder is set to match it exactly.
The site changes as soon as the deploy finishes.
Stop using Git deploy#
Press Forget repository. The connection is removed, but the files stay where they are, so your site keeps working. You can then manage the files with the File manager or SFTP.
Troubleshooting#
- The first deploy says the folder is not empty: move or delete the files that are there (a lone
index.htmlplaceholder may stay), or choose a different, empty folder. - The repository cannot be reached: check the address works in a private browser window without signing in. If the repository is private, it cannot be used yet.
- The site shows a blank page or missing styles: the built files are probably not in the repository. Build on your computer and commit the result.
- A file I uploaded disappeared: it was not in the repository, so the deploy removed it. Add it to the repository, or restore it from a backup; see Backups and restore.
What's next#
Was this helpful?
Still stuck?
Email support@finitehost.com with your subscription ID (it starts with t, shown on the panel's Dashboard) and what you tried. A person replies, usually within one business day.
Last updated 30 October 2026. Found something wrong? Tell support@finitehost.com.