Cursor Origin
Will Cursor Origin Work With GitHub? Mirroring & Interop
Yes. Origin can mirror a GitHub repository, keep the Origin copy updated, show the repo's GitHub pull requests for review in Cursor, and leave GitHub as the source of truth until you detach. Plain git mirroring works too. Issues, Actions workflows and secrets don't sync, and git never carries host settings such as branch protections.

On this page
Will Cursor Origin work with GitHub?
Yes, and Cursor's docs describe how. Sync from GitHub at cursor.com/codebase copies a GitHub repository into Origin and keeps the Origin copy updated as the GitHub repo changes. GitHub stays the source of truth. Pushes to the Origin remote go to GitHub, and Origin updates after GitHub accepts them. Detach from GitHub turns the Origin copy into a standalone Origin-hosted repo, and your GitHub repository is not affected.
On a mirrored repo, the Pull Requests tab shows the GitHub pull requests, and you can review them in Cursor. The August 17 changelog adds that pull requests on a synced repo sync both ways: a comment in Cursor posts to GitHub, and a reaction or reply on GitHub shows up in Cursor within seconds. You need Origin access on Premium or higher, Teams, Enterprise or a legacy paid plan, the Cursor GitHub app on the org or account that owns the repo, and GitHub admin access on the repo.
Under that sits the structural reason this was always going to be possible. Origin is a git forge, and git was designed so that no host owns a repository. Any host that speaks the git protocol has already handed you the export, since clone and push are the operations a mirror runs on. Origin's green Code button gives you an HTTPS clone URL on origin.cursor.com, and Origin would have to stop being a git forge to close that door.
Because GitHub stays the source of truth, you can evaluate Origin on real work and walk away without moving anything back.
This is covered hands-on in Cursor Compile 2026 — 1 short Unit, free to read.
Rather do it than read about it? Run 11 interactive Cursor walkthroughs in a simulated editor. Free, no account needed.
How do you mirror a repo between GitHub and Origin?
Two plain-git patterns cover most cases, and neither is specific to Origin. Use them for a repo created on Origin, which the sync doesn't cover, or for a standing copy in the other direction after a detach. The commands use a placeholder Origin URL. The documented format is https://origin.cursor.com/{owner}/{repo}.git, with credentials from origin auth login.
Pattern 1: one remote, two push URLs
Give your existing remote a second push URL. Per git's docs, a push goes to every defined push URL, so each ordinary git push lands on both hosts while fetches keep coming from the first URL. Nobody on the team changes their workflow.
git remote set-url --add --push origin git@github.com:acme/app.git git remote set-url --add --push origin <origin-remote-url>
This pattern has a catch. Remote configuration lives in each clone's own .git/config, so a second push URL is a per-machine setting. Set it on your laptop and your pushes reach both hosts, while everyone else's reach one. The mirror then falls behind by whatever the rest of the team merged, nothing warns you, and the drift tends to surface when someone clones the mirror and finds it a month stale.
A push to two URLs is also two pushes. If the second is rejected, the first has already landed, so a failed git push doesn't mean both hosts are unchanged. Read the output as well as the exit code.
Pattern 2: a full mirror push
For a complete copy of every branch, tag and ref, clone with --mirror and push with --mirror. Git's definition is exact: all refs under refs/ are mirrored to the remote, new refs are created, changed refs are force-updated, and refs you deleted locally are deleted on the target.
git clone --mirror git@github.com:acme/app.git cd app.git git remote add origin-mirror <origin-remote-url> git push --mirror origin-mirror
A mirror push makes the target match your local refs exactly, including removing branches that don't exist locally. Point it only at a remote that exists to be a mirror, never at a host where someone may have pushed work you don't have.
Which mirroring pattern should a team use?
To copy a GitHub repo into Origin with its full history, use Origin's own mirroring, Sync from GitHub, which Cursor's git docs recommend for that job. The same docs show the two-push-URL setup for a different one: running GitHub and Origin in parallel while you evaluate.
Where the sync doesn't apply, we wouldn't rely on the two-URL setup for a team. A mirror push from one machine on a schedule is clumsier, but it has an owner, so there is somewhere to look when the copy goes stale. Keep pattern 1 for a solo repo or for the two weeks you are running a trial. Once more than a couple of people push, run the mirror push as a scheduled job.
What does not mirror between GitHub and Origin?
Anything the host stores outside the repository stays behind. Git carries the code and its history. The collaboration record around it lives in each host's own database, where no git command reaches. That is the line between "git-compatible" and "drop-in GitHub replacement", and it matters most when you count on a mirror as your exit.
- Asset
- Commits, branches, tags
- Carried by git mirroring?
- Yes. They are the repository, and a mirror push carries every ref. Origin's sync skips GitHub branches named origin or origin/...
- Asset
- CI workflow files (.github/workflows)
- Carried by git mirroring?
- Yes, as files. On Origin, Cursor's August changelog says the Depot and Buildkite apps run them; see Origin and CI/CDContinuous Integration / Continuous Delivery. The automated pipeline that builds, tests and ships code so changes reach production safely and often. Press Enter for the full definition..
- Asset
- Pull requests and review threads
- Carried by git mirroring?
- Not by git. On a synced repo, Origin shows the GitHub pull requests for review in Cursor; a plain mirror push leaves them behind.
- Asset
- Issues, labels, milestones
- Carried by git mirroring?
- No. Host data, and the sync docs list GitHub Issues as not included; an API export is the best you get.
- Asset
- Branch protections and required checks
- Carried by git mirroring?
- No. Host settings, though the Origin CLI can import GitHub rulesets and branch-protection JSON as Origin rulesets.
- Asset
- Webhooks, secrets, integrations
- Carried by git mirroring?
- No. The sync leaves out Actions workflows and secrets, and Origin apps install from codebase settings and run only on Origin-hosted repos.
| Asset | Carried by git mirroring? |
|---|---|
| Commits, branches, tags | Yes. They are the repository, and a mirror push carries every ref. Origin's sync skips GitHub branches named origin or origin/... |
| CI workflow files (.github/workflows) | Yes, as files. On Origin, Cursor's August changelog says the Depot and Buildkite apps run them; see Origin and CI/CDContinuous Integration / Continuous Delivery. The automated pipeline that builds, tests and ships code so changes reach production safely and often. Press Enter for the full definition.. |
| Pull requests and review threads | Not by git. On a synced repo, Origin shows the GitHub pull requests for review in Cursor; a plain mirror push leaves them behind. |
| Issues, labels, milestones | No. Host data, and the sync docs list GitHub Issues as not included; an API export is the best you get. |
| Branch protections and required checks | No. Host settings, though the Origin CLI can import GitHub rulesets and branch-protection JSON as Origin rulesets. |
| Webhooks, secrets, integrations | No. The sync leaves out Actions workflows and secrets, and Origin apps install from codebase settings and run only on Origin-hosted repos. |
The asymmetry runs both ways, Origin to GitHub included, except that Origin's sync shows GitHub pull requests in Cursor.
An API export is the usual fallback for the right-hand column, so be exact about what it gives you. You get records: comment bodies, each with a timestamp and an author. You don't get a live review thread on the new host, attached to the diff it discussed, where someone can still reply. Records satisfy an audit request, and nobody can keep working in them, so plan to keep the old host readable for a while after a move.
Pull requests are the one row Origin's sync changes. The docs say you can review a mirrored repo's GitHub pull requests in Cursor, and the August 17 changelog describes pull requests syncing both ways. Issues, workflows and secrets stay where they were, and no importer for them is announced. Among host settings, rulesets are the exception, since the CLI can import them. Plan on the git layer being portable and the rest needing manual work until Cursor documents otherwise.
How do risk-averse teams keep the door open?
The strategy is the same whichever host you treat as primary. Never let one host hold the only copy of your history, and decide on purpose where the collaboration record builds up.
- 1While evaluating: sync from GitHub and leave GitHub as the source of truth, which is how the sync works. Review and merge real work through Cursor on one non-critical repo, and judge the product on that work.
- 2If you adopt Origin and detach: keep a standing push back to GitHub or another host, so your history always has a live copy outside Cursor. Detaching doesn't delete the GitHub repo, so it is the obvious target.
- 3Test the exit before you need it. Clone fresh from the mirror and compare refs against the primary with git ls-remote. A mirror you have never restored from is untested.
- 4Decide on purpose where reviews happen. Review threads, stacks and merge history build up on whichever host runs them, and no mirror carries that record.
A mirror is only as current as its last push, so decide what current has to mean before anyone relies on it. In our view, daily is enough for an exit plan, since a day of commits still exists on somebody's laptop and in somebody's branch. Hourly starts to matter once the mirror is also your answer to the primary host having an outage. Those are two different requirements, and only the second costs anything to run.
Mirroring lets you leave with your code and history intact. It doesn't keep the reviews, discussions and settings that explain that history. That collaboration record is what locks you in on any forge, GitHub and Origin alike, and it starts building on day one wherever you review.
Frequently asked questions
Can I use GitHub and Cursor Origin at the same time?
Yes, and the sync is built for it. Sync from GitHub at cursor.com/codebase keeps a copy on Origin with GitHub as the source of truth, and pushes to the Origin remote go to GitHub. Plain git also lets one repo push to several remotes, which covers repos created on Origin or kept after a detach.
Does mirroring copy my pull requests and issues?
Plain git mirroring doesn't, because pull requests, issues and settings are host database records that git can't see. On a synced repo, Origin shows the GitHub pull requests for review in Cursor, and the August 17 changelog says they sync both ways. GitHub Issues, Actions workflows and secrets are documented as not synced, and no importer for them is announced.
Has Cursor announced a GitHub import or sync feature for Origin?
Yes. The August 17, 2026 changelog and cursor.com/docs/origin/mirror-github describe Sync from GitHub, which keeps the Origin copy updated with GitHub as the source of truth. Detach from GitHub makes the Origin copy standalone. The sync needs Origin access, the Cursor GitHub app on the owning org or account, and GitHub admin rights on the repo.
Is git push --mirror safe to run?
Against a dedicated mirror remote, yes, and anywhere else it is dangerous. A mirror push force-updates changed refs and deletes refs that don't exist locally, so it will erase work someone pushed only to the target. Use it for mirrors, and use normal pushes for shared remotes.
Sources & last verified
- Git: git push docs (--mirror, pushurl)
- Git: git remote docs
- Cursor: Origin
- Cursor Docs: Mirror a GitHub repository
- Cursor Changelog: Origin Code Hosting (Aug 17, 2026)
- eesel: What is Cursor Origin?
- Cursor Docs: Origin
- Cursor Docs: Origin pull requests
- Cursor Docs: Clone, push and pull
- Cursor Docs: Origin CLI commands
- Cursor Docs: Origin Apps
Cursor ships frequently. Last updated October 28, 2026.