Features › Core Features
GitHub Integration
Connect Emergent with GitHub to seamlessly save, version, and collaborate on your projects - all without leaving your workspace.
Emergent’s GitHub integration lets you manage your projects with version control, collaborate with teams, and back up your work automatically - all from within the Emergent interface.
You can connect your GitHub account, push and pull code, manage branches, and collaborate across multiple environments seamlessly.
Use Case 1: Starting a New Project and Saving to GitHub
Info
Use this workflow when you’re starting a brand new app and want to save it to GitHub for version control.
Start Your Project
- Begin a new task in Emergent with a project description, e.g. “Build a task management app.”
- Let the agent build your application.
- Test it using the Preview feature.
Connect GitHub (First Time Only)
- Click your profile icon in Emergent.
- Select Connect GitHub.
- Authorize Emergent via the GitHub login screen.
- Grant access permissions to repositories.
Save to GitHub
- Click Save to GitHub in the chat interface.
- Choose to create a new repository or select an existing one.
- Select the branch (typically
mainfor new projects). - Click PUSH TO GITHUB.
Your project is now saved with automatic commit messages.
Success
Save after completing major features, and before big changes, to keep your progress safe and versioned.
Use Case 2: Continuing Work on an Existing GitHub Repository
Info
Use this workflow to continue developing a project that already exists on GitHub.
Start a New Task
- Begin a new task in Emergent.
- Click the GitHub button on the chat screen.
Pull from GitHub
- Choose Pull from GitHub.
- Select your repository from the connected GitHub account.
- Pick the branch you want to import.
- Emergent will bring your existing code into your workspace.
Continue Development
- Explore files using the file viewer.
- Add features, fix bugs, and preview updates.
- Use the chat to guide changes via natural language.
Save Progress
- Click Save to GitHub regularly to push updates.
- Select the same repository and branch.
- Emergent automatically commits the new changes.
Success
Always pull the latest version before starting a new session, especially when working with collaborators.
Use Case 3: Team Collaboration Workflow
Info
Emergent integrates seamlessly with GitHub’s collaboration tools, making it easy for multiple teammates to work on the same project.
Project Owner Setup
- Create the initial project in Emergent.
- Save it to a shared GitHub repository.
- Add team members as collaborators on GitHub.
Team Member Workflow
- Each member connects their GitHub account to Emergent.
- Pull the shared repository into their workspace.
- Work on assigned features independently.
Using Feature Branches
- When saving, create a new branch (e.g.
feature-user-auth,feature-payments). - Push changes to this feature branch.
- Keep
mainbranch stable for production-ready code.
Code Integration
- Use pull requests on GitHub to review and merge branches.
- Merge approved changes into
main. - Pull the latest version into Emergent to stay up to date.
Success
Use descriptive branch names and coordinate tasks with your team to avoid conflicts.
Always test before merging into main.
Use Case 4: Managing Multiple Project Versions
Info
If you’re experimenting with different features or want to maintain multiple versions of your app, use branches to manage them effectively.
Create an Experimental Branch
- Open your main project in Emergent.
- Save to GitHub with a new branch name (e.g.
experimental-ui). - Build and test your experimental features separately.
Switch Between Versions
- Main version → Pull from
mainbranch. - Experimental version → Pull from
experimental-uibranch. - Each branch represents a distinct version of your project.
Merge Successful Experiments
- Use GitHub’s pull request system to merge successful experiments into the main branch.
- Delete unneeded branches once merged.
Success
Keep experimental branches isolated until features are stable and reviewed.
Use Case 5: Backup and Recovery Workflow
Info
Emergent automatically syncs your work to GitHub, ensuring you always have a backup — but you can also manage manual backups for extra safety.
Regular Backup Schedule
- Save after completing each major feature.
- Save before attempting significant refactors or changes.
- Save at the end of every session.
Recovery Process
- If something breaks, start a new task in Emergent.
- Pull your last saved version from GitHub.
- Continue development from the last stable commit.
Version History
- Use GitHub’s commit history to review or revert changes.
- Restore any previous state directly from GitHub.
- Track progress and changes over time.
Success
Saving regularly to GitHub ensures you can always recover previous versions without losing progress.
Troubleshooting Common GitHub Issues
Connection Problems
Issue: GitHub connection isn’t working.
Solution:
- Go to GitHub → Settings → Applications → Installed GitHub Apps.
- Find Emergent and uninstall it.
- Reconnect your GitHub account in Emergent.
Push Conflicts
Issue: Getting conflict errors when pushing.
Solution:
Create a new branch instead of pushing to main.
Resolve conflicts later through GitHub’s web interface.
This preserves your latest work while avoiding overwriting existing code.
Missing Repositories
Issue: Your repositories aren’t visible in Emergent.
Solution:
- Ensure your GitHub account is connected correctly.
- Verify that Emergent has repository access permissions.
- Try disconnecting and reconnecting GitHub.
Info
Emergent’s GitHub integration provides full version control, team collaboration, and safe recovery — all through simple prompts and clicks, no setup required.
Success
You now have everything you need to manage your code with GitHub inside Emergent — from solo projects to team workflows.
