For Next.js TypeScript projects, Rocket supports full two-way sync with GitHub. Rocket pushes changes to aDocumentation Index
Fetch the complete documentation index at: https://docs.rocket.new/llms.txt
Use this file to discover all available pages before exploring further.
rocket-update branch and automatically opens a pull request to main for each batch of code edits. Pull changes made by teammates or in your local IDE back into Rocket at any time.
Code sync requires a paid plan (Pro or above).
How it works
| Direction | What happens | Supported projects |
|---|---|---|
| Push (Rocket to GitHub) | Rocket pushes changes to the rocket-update branch and automatically opens a pull request to main for review. | Next.js TypeScript only |
| Push (Rocket to GitHub) | Push your code to GitHub manually. No automatic pull request is created. | All other frameworks |
| Pull (GitHub to Rocket) | Imports the latest state of main back into your Rocket project, with conflict resolution if needed. | Next.js TypeScript only |
Push to GitHub
Push
Click Push to send your project code to GitHub. Rocket automatically creates a repository for you. For Next.js TypeScript projects, Rocket pushes to the 

rocket-update branch and automatically opens a pull request to main so your changes can be reviewed. For all other frameworks, the code is pushed but no automatic PR is created. Push again anytime to update with your latest changes.

Pull from GitHub
Available for Next.js TypeScript projects only. After your initial push, the GitHub button changes to Pull from GitHub.Resolve any conflicts
If there are no conflicts, the pull completes immediately and you see a success message with no further steps needed.If changes in GitHub conflict with your Rocket project, Rocket surfaces them so you can choose how to resolve before the pull completes.



For Rocket-generated apps, pulls are from the
main branch only. For cloned repositories, Rocket pulls from the branch you selected when cloning. Changes on other branches will not be pulled into Rocket.When to push vs pull
| Scenario | Action |
|---|---|
| You iterated in Rocket and want to back up or share | Push to GitHub |
| A teammate committed changes in their IDE | Pull from GitHub into Rocket |
| You edited code locally and want to continue in Rocket | Pull from GitHub into Rocket |
| You want to trigger a CI/CD pipeline | Push to GitHub, then your pipeline runs |
Disconnect
GitHub is connected at the workspace level. Disconnecting removes the GitHub link for your entire Rocket account.Disconnect a service
Disconnect or switch accounts from workspace Settings.
Limitations
- Next.js TypeScript only for pull and auto PR. Two-way sync and automatic PR creation require a Next.js project using TypeScript. JavaScript-only Next.js projects and all other frameworks support manual push only, with no automatic PR.
- Branch behaviour. For Next.js TypeScript projects, Rocket pulls from
mainand pushes to arocket-updatebranch, opening a PR tomainfor each batch of changes. For cloned repositories, Rocket pulls from the branch selected at clone time. Other branches are not synced. - Manual push for other frameworks. For non-Next.js or JavaScript-only projects, you need to manually click Push when you want to update GitHub.
One-way sync (other frameworks)
For non-Next.js or JavaScript-only projects, GitHub integration is push-only and manual. Push your code to GitHub for backup and collaboration by clicking the Push button when you want to update. No automatic pull request is created. Changes made directly in GitHub will not sync back to Rocket. Always make changes in Rocket first, then push.See the full GitHub connector setup guide, including authorization and permissions.
What’s next?
From GitHub
Import an existing Next.js TypeScript repo to start building in Rocket.
Code tab
Browse and edit your project files directly in Rocket.
Netlify
Deploy your app to the web after pushing to GitHub.
GitHub connector
Connect your GitHub account, manage repository settings, and push code.



