GitHub

Git and deploy

Connect a repository, get Cloud aligned with it, verify the preview, then deploy.

GitHub is the seam between your computer and Cloud. Connect a repository and both sides work on the same history, which makes "where are my changes?" a git pull instead of an investigation.

Put the project on GitHub

Skip this if the repository already exists.

git init
git add .
git commit -m "Initial commit"
git branch -M main
git remote add origin https://github.com/<your-username>/<your-repo>.git
git push -u origin main

Connect GitHub to Freebuff

  1. Open the GitHub connectionIn Desktop: Settings → Connections → GitHub. In Cloud: the GitHub button in the project header.
  2. AuthoriseClick Connect GitHub, sign in, and install the Freebuff hub app for the repository. It needs read/write access to push and pull.
  3. Pick the repositoryBack in Freebuff, select the repository and connect it. If it is missing from the list, use Manage GitHub access in the same place and add it.

Align Cloud with the repository

The first time Cloud opens an existing repository it may not have the dependency versions or build output your project expects. Ask for the alignment explicitly:

"Pull from GitHub and align the project for compatibility with your environment."

Then let it work, and ask it to verify the live preview when it is done. A preview that renders is the only proof that matters before you deploy.

Iterate, then deploy

  1. Test in the previewOnce the preview renders, use it like a user: sign in, submit forms, reload.
  2. DeployClick Deploy when you are satisfied. It runs a soft scan for a compatible Vite or React project.
  3. If the scan failsSend the error message to the agent and let it fix the build. Repeated deploys of an unchanged build produce the same message.
  4. Choose an addressA Freebuff-supplied domain, or your own — DNS takes up to 24–48 hours. See custom domains.

Deploying is not the same as publishing. Check the environment's status before you tell anyone the site is live, and remember that preview and production keep separate data.

Getting Cloud changes back

Ask the agent in the Cloud chat to push, naming a branch if you want one: "push to a new branch called cloud-work". Then, locally:

git pull
# or, for a new branch:
git fetch
git checkout cloud-work

The chat-handoff alternative — and why a handoff copy never syncs back on its own — is in local to Cloud.