Documentation Index
Fetch the complete documentation index at: https://docs.optidev.ai/llms.txt
Use this file to discover all available pages before exploring further.
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
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
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
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
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
Disconnecting
Unlink a Project
- Open your project
- Click the GitHub button
- Click Disconnect
Remove GitHub Account
- Go to Settings → GitHub
- Find the account to remove
- Click the trash icon
- Confirm removal
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