Check out the PanelFi demo — sign in to both panels, nothing to install
Documentation · Customer panel: software and apps

Git Version Control

Keep a site's code in Git. Clone a repository from GitHub, GitLab or any other Git host and update it with one click, or create an empty repository on the server and push to it over SSH.

Where to find itCustomer panel › Files › Git Version Control

Clone a repository

  1. Open Git Version Control and press Clone a repository.
  2. Enter the Repository address, for example https://github.com/name/project.git.
  3. Choose the Folder in your home folder. It must be new or empty. To publish the repository as a website, clone it into the site's folder.
  4. Optionally set the Branch, then press Clone.
Cloning a repository
Cloning a repository

The list then shows each repository with its folder, where it came from, the current branch and last commit, and whether files were changed on the server.

Git Version Control
Git Version Control

Update a repository

Press Update on a repository to fetch the newest commits of its branch. It refuses when files changed on the server in a way that conflicts, so nothing is overwritten by surprise. Remove takes the repository off the list.

Clone a private repository

  1. Open the Private repositories section and press Show the deploy key. This is your account's public key.
  2. Add it to your Git host as a read-only key: Deploy keys on GitHub and GitLab, Access keys on Bitbucket.
  3. Clone with the SSH address, for example [email protected]:name/project.git.

Create an empty repository and push to it

  1. Press Create empty, choose the Folder and Branch, and press Create.
  2. The list shows an ssh:// address for it. Add that as a remote in your local repository and push.

A repository created here accepts pushes over SSH and puts the pushed files in its folder. This needs SSH to be on for your account (see SSH access).

Notes and limits

  • To publish a repository as a site, clone it into the site's folder, or point the site's document root at the repository under Domains.
  • PanelFi's web servers refuse to serve files and folders whose names start with a dot, so the .git folder is not reachable by visitors.
  • Git Version Control can be switched off per package in the Feature Manager.