| title | 🐙 GitHub Integration |
|---|---|
| description | How Teta's AI integrates with GitHub for seamless collaboration and version control |
Teta seamlessly integrates with GitHub to provide version control, collaboration, and deployment capabilities for your projects.
GitHub integration is required for all Teta projects. This ensures:
- ✅ Version Control: Track all changes to your code
- ✅ Team Collaboration: Work together with your team
- ✅ Branch Protection: Never work directly on main/master
- ✅ Backup: Your code is always safe in your repository, never hosted by our side
- ✅ Deployment: Easy publishing and continuous deployment
- A GitHub account (create one at github.com)
- A repository for your project
- Admin access to the repository
- Go to Settings > GitHub in your Teta project
- Click "Connect GitHub"
- You'll be redirected to GitHub
- Click "Install" on the Teta GitHub App
- Select which repositories to give access to:
- All repositories (easiest)
- Only select repositories (more control)
- Return to Teta and start a new session
- Select your repository from the dropdown
- Choose the default branch (usually
mainormaster) - Click "Connect"
Teta will automatically:
- Clone your repository
- Create a working branch (
teta/{feature}-{app}) - Set up the development environment
- Initialize the workspace
Important: Teta never works directly on your default branch. All changes happen on dedicated working branches.
Teta uses a protective branch strategy:
main (or master) ← Your production code (protected)
└─ teta/app-abc123 ← Teta's working branch
What happens:
- Teta clones your default branch
- Creates a new branch:
teta/app-[your-app-id] - All AI changes are committed to this working branch
- You control when to merge back to main
1. Clone repository from default branch
2. Create working branch (teta/app-*)
3. Push working branch to GitHub
4. Set up development environment
6. Configure AI agents and MCPs
7. Ready to code!
The AI will always commits when it edits the code.
Everytime the AI will:
- Review all changes with
git statusandgit diff - Stage relevant files
- Create a descriptive commit message
- Commit to your working branch
To push your changes:
You: "Push my changes to GitHub"
The AI will:
- Verify there are commits to push
- Push to your working branch
- Confirm the push was successful
You can create the PR by clicking the button 'Open PR' inside the chat with the AI. This will redirect you to the review changes page on GitHub, where you can open the PR.
Or you can ask Teta to create a PR:
You: "Create a pull request for these changes"
The AI will:
- Review all commits on your branch
- Generate a comprehensive PR description
- Create the PR using GitHub CLI (
gh) - Return the PR URL
Always review your working branch before merging to main:
- Check the diff on GitHub
- Test the changes thoroughly
- Get team review if applicable
- Merge via pull request
To see commit history:
You: "Show me the last 10 commits"
The AI will display:
- Commit hashes
- Messages
- Authors
- Timestamps
To undo commits:
You: "Revert the last commit"
Warning: Be careful with destructive operations. Always ensure work is backed up.
Problem: Can't connect to GitHub
Solutions:
- Check GitHub App is installed
- Verify repository access
- Ensure you have admin rights
- Try reinstalling the GitHub App
Problem: Cannot push to GitHub
Solutions:
- Check internet connection
- Verify branch name is correct
- Ensure you have write access
- Pull latest changes first
Problem: Cannot merge branches
Solutions:
- Review conflicting files
- Use
git statusto see conflicts - Edit files to resolve conflicts
- Commit the resolution
- Ask AI for help if needed
Problem: GitHub connection lost
Solutions:
- Go to Settings > GitHub
- Click "Reconnect"
- Reauthorize the app
- Verify repository access
Never commit:
- API keys and secrets
- Database passwords
- Private keys
- Environment variables with sensitive data
For sensitive configuration:
- Add to Settings > Secrets
- Reference in code as environment variables
- Never hardcode in source files
Before merging:
- Check for accidentally committed secrets
- Review all file changes
- Verify tests pass
- Check for security vulnerabilities
Teta uses GitHub CLI (gh) for advanced features:
# View pull requests
gh pr list
# Check PR status
gh pr view 123
# View issues
gh issue list
# Check CI/CD status
gh run listThe AI can run these commands for you:
You: "Show me all open pull requests"
You: "What's the status of PR #42?"
You: "List the latest CI runs"
If migrating from Lovable, FlutterFlow, Claude Code Web:
- Export your code
- Create a GitHub repository
- Push code to GitHub
- Connect to Teta
- You're done!
GitHub integration is central to the Teta development experience. It ensures your code is safe, versioned, and ready for collaboration and deployment.
- Getting Started - Platform basics
- AI Agents - Custom AI workflows
- Preview Controls - Development workflow
Need help? Contact support@teta.so