Why Connect to GitHub?
GitHub integration lets you:
Back up your code - Your project is safely stored on GitHub
Collaborate with your team - Others can view and contribute to your code
Track changes - See the history of every update
Import existing projects - Bring your GitHub repos into OptiDev
Connecting Your GitHub Account
Before linking projects, you need to connect your GitHub account to OptiDev.
Step-by-Step
Go to Settings (bottom of the sidebar)
Select the GitHub tab
Click Connect GitHub Account
GitHub opens in a new window
Review the permissions and click Authorize
You’re redirected back to OptiDev
Your GitHub account now appears in the Connections list.
You can connect multiple GitHub accounts if you use different accounts for personal and work projects.
Push Your Project to GitHub (starting with OptiDev)
Have an OptiDev project you want to back up or share? Push it to GitHub.
Create a New Repository
Open your project in OptiDev
Click the GitHub button in the toolbar
Select your GitHub account
Choose Create new repository
Enter a repository name
Select the owner (your account or an organization)
Choose public or private
Click Transfer
Your project code is now on GitHub.
Connect to an Existing Repository
Open your project in OptiDev
Click the GitHub button
Select your GitHub account
Choose Use existing repository
Select the repository from the list
Click Connect
Import from GitHub (starting with a repo)
Already have a project on GitHub? Import it directly into OptiDev.
From the dashboard, click New Project
Select Import from GitHub
Choose your GitHub account
Browse or search for the repository
Select the branch to import
Click Import
OptiDev clones the repository and sets up your development environment automatically.
Deployment Compatibility
OptiDev can deploy Vite-based projects (React, Vue, etc.). Other project types like Next.js, Python, or Node.js backends can be developed in OptiDev but need external hosting for deployment.
Project Type Development Deployment Vite (React, Vue) Yes Yes Next.js Yes External hosting Python Yes External hosting Node.js backend Yes External hosting
Syncing Changes
Once your project is connected to GitHub (either by pushing or importing), syncing is automatic.
Automatic Push
OptiDev automatically pushes your changes to GitHub every time you save (commit). You don’t need to do anything—every change appears on GitHub within seconds.
Pulling Updates
If there are new changes to your GitHub repository, you can pull them into OptiDev.
Open your project
Click the GitHub button
Click Pull
Changes from GitHub are merged into your project
If you have unsaved changes in OptiDev, commit them first to avoid conflicts.
Viewing Your Commits
On GitHub : Go to your repository and click “Commits”
In OptiDev : Open your project and click on the icon (Version History)
Organization Access
For organization repositories, you may need to grant OptiDev access:
Go to Settings → GitHub
Click Install App on Org next to your connection
Select your organization on GitHub
Choose which repositories OptiDev can access
Click Install
This gives OptiDev access to organization repos, even if team members change.
Disconnecting
Unlink a Project
Open your project
Click the GitHub button
Click Disconnect
Your project stays in OptiDev, but changes no longer sync to GitHub.
Remove GitHub Account
Go to Settings → GitHub
Find the account to remove
Click the trash icon
Confirm removal
All projects linked to that account are unlinked automatically.
Troubleshooting
”Permission denied” when pushing
Your GitHub token may have expired. Go to Settings → GitHub, remove the connection, and reconnect.
Changes not appearing on GitHub
Check that GitHub sync is enabled:
Open your project
Click the GitHub button
Ensure the toggle is on
Can’t see organization repositories
You need to install the OptiDev app on your organization. Click Install App on Org in Settings → GitHub.
Import shows errors but project works
Some warnings during import are normal (like missing optional configs). If your project runs correctly, you can ignore them.