Use Case 1: Starting a New Project and Saving to GitHub
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.
Use Case 2: Continuing Work on an Existing GitHub Repository
Use this workflow to continue developing a project that already exists on GitHub.
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.
Use Case 3: Team Collaboration Workflow
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.
Use descriptive branch names and coordinate tasks with your team to avoid conflicts.
Always test before merging into
Always test before merging into
main.Use Case 4: Managing Multiple Project Versions
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.
Use Case 5: Backup and Recovery Workflow
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.
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.
Emergent’s GitHub integration provides full version control, team collaboration, and safe recovery — all through simple prompts and clicks, no setup required.
You now have everything you need to manage your code with GitHub inside Emergent — from solo projects to team workflows.