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
- Go to your Dashboard → Account
- Find the SSH Key card
- Click Generate SSH Key
- Once generated, click Copy Key
Step 2: Add SSH Key to Your Git Provider
After copying your SSH key, add it to your Git provider: For GitHub:- Go to GitHub Settings > SSH and GPG keys
- Click “New SSH key”
- Paste your public key
- Click “Add SSH key”
- Go to GitLab Settings > SSH Keys
- Paste your public key in the “Key” field
- Add a title (e.g., “HelloLeo”)
- Click “Add key”
- 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
- Click the Git Commands button (repository icon) in the project header
- Choose Connect Repository
- Enter the repository URL in SSH format:
[email protected]:user/repo.git - Optionally set a Connection Name (defaults to
origin) - Click Connect Repository
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
