Skip to main content
Every project has its own Git history: Leo commits its changes as it works. Connect a GitHub or GitLab repository and push those commits there, so your code stays yours, versioned outside HelloLeo.

Prerequisites: SSH Key Setup

Before connecting a Git repository, you need to set up an SSH key. This allows HelloLeo to authenticate with your Git provider (GitHub, GitLab, etc.).

Step 1: Generate Your SSH Key

  1. Go to your Dashboard → Account
  2. Find the SSH Key card
  3. Click Generate SSH Key
  4. Once generated, click Copy Key
Regenerate creates a new key. Replace the old one at your Git provider when you do.

Step 2: Add SSH Key to Your Git Provider

After copying your SSH key, add it to your Git provider: For GitHub:
  1. Go to GitHub Settings > SSH and GPG keys
  2. Click “New SSH key”
  3. Paste your public key
  4. Click “Add SSH key”
For GitLab:
  1. Go to GitLab Settings > SSH Keys
  2. Paste your public key in the “Key” field
  3. Add a title (e.g., “HelloLeo”)
  4. Click “Add key”
For other Git providers:
  • Check your provider’s documentation for adding SSH keys
  • The process is usually similar: Settings → SSH Keys → Add new key

Step 3: Verify Setup

Once your SSH key is added to your Git provider, you’re ready to connect repositories!

Repository Connection

Connect an Existing Project to a Repository

  1. Click the Git Commands button (repository icon) in the project header
  2. Choose Connect Repository
  3. Enter the repository URL in SSH format: [email protected]:user/repo.git
  4. Optionally set a Connection Name (defaults to origin)
  5. Click Connect Repository
Only SSH URLs are supported.

Start a Project from a Repository

On the projects page, click New Project, open Start from an existing project, paste the SSH URL and click Clone and Set Up Project.

Git Commands

The Git Commands menu in the project header holds:
  • Pull Changes: get the commits from the connected repository
  • Push Changes: send your project’s commits to the connected repository
  • Create Pull Request: push, then open a pull request against main. GitHub repositories only, and your GitHub account must be linked
  • Change Branch: switch to another branch. Type a name that does not exist yet to Create branch. The current one is marked You are here
  • Connect Repository: set or change the repository URL

Version History

Click the history button (View History) in the project header to open Version History: Leo’s recent commits, with their message, how long ago they were made, and a short ID. Click a version to restore it. HelloLeo creates a new branch from that version and moves you onto it. To come back, switch to your previous branch with Change Branch.

Troubleshooting

Connection Issues

  • Check SSH URL - Must be in SSH format ([email protected]:user/repo.git)
  • Verify SSH key is set up - Make sure you’ve generated your SSH key on the Dashboard → Account and added it to your Git provider
  • Check Git provider - Ensure the SSH key is correctly added to GitHub/GitLab

Sync Problems

  • Pull first - Get remote changes before pushing
  • Resolve conflicts - Merge conflicts if they occur
  • Check branch - Make sure you’re on the right branch