Articles on: 🌍 Web Hosting & PaaS
This article is also available in:

How do I connect my Git repository?

GitHub


Click Connect GitHub, then install the Hodifly app on the account or organization that owns your repositories, choosing which repositories to grant access to.


Your repositories then appear automatically when you create a new project.


GitLab (gitlab.com and self-hosted)


Unlike GitHub, there's no app to install. Here are the three steps to connect your GitLab, whether it's on gitlab.com or self-hosted:


Your self-hosted GitLab must be accessible on the internet and have a valid SSL certificate.


  1. In GitLab, open your project › Settings › Access Tokens.
  2. Create a token with role Maintainer and scope api.
  3. In the Hodifly new project form, choose GitLab, paste your project URL (for example https://gitlab.com/groupe/projet), paste the token, then click Validate.


Hodifly verifies the token and configures your project so it can be used on Hodifly.


My GitLab token is about to expire. What happens?

Hodifly notifies you by email about 30 days before it expires (then again as the deadline approaches, and once the token has expired), and shows a warning on the project with an Update Token link. Click it and paste a new token. If several projects share this token, a single update renews all of them.


Why does the GitLab token need the api scope and the Maintainer role?

Because Hodifly needs to create a webhook to receive GitLab notifications, and to publish commit statuses as well as merge request preview links (api).


No GitHub or GitLab: push straight to Hodi


For a small project, a prototype or an AI-generated site, you can do without GitHub: Hodifly hosts an empty Git repository itself, on git.hodifly.app, and you push your code to it. The first push detects the framework and puts the site online; every later push to the branch redeploys.


GitHub or GitLab stay the recommended way as soon as the site matters: a browsable history, reviews with others, pull request previews, and a copy of your code with a third party. The Hodifly repository is a deploy mirror, not a backup.


  1. In the Hodifly page of cPanel, create a project with Push from your machine, pick the domain and confirm.
  2. Hodifly shows the repository address and a push token, displayed once. Hand it to git's credential helper.
  3. In your project folder:


git remote add hodifly https://git.hodifly.app/<id>.git
git push hodifly main


Username: anything; password: the token.


An AI assistant connected to your hosting does the same from the conversation: ask it to put a folder online "without GitHub". It creates the project and pushes the code itself. If its environment cannot reach git.hodifly.app (some online sandboxes), it sends the code through the Hodi connector instead, with nothing to set up on your side.


Push tokens


A token opens one repository. You can create several (one per machine, one for your CI) and revoke each from the project page: pushes using it stop at once. A lost token never needs to be found: revoke it and create another.


Limits


  • The repository is capped at 1 GB, and at 30 pushes an hour.
  • Force pushes are accepted. Branches other than the project's are stored, not deployed.
  • No pull request previews: there are no pull requests.
  • A deleted project keeps its repository for 30 days, then it is erased.

Updated on: 07/11/2026

Was this article helpful?

Share your feedback

Cancel

Thank you!