Move from GitHub / Import
Import everything from GitHub
Your work is on GitHub: your repositories, the organizations that you own, your profile and your stars. You want all of it on TanStack Source, and you do not want to import one account at a time.
7 min read
Import everything copies all of it in one run. Before it starts, you can uncheck the repositories that you do not want. You can leave the page while it runs. Each item ends as done, failed or skipped, and each failed or skipped item tells you why.
Other ways to start:
- After your account is approved, onboarding opens on your dashboard. Its Import step starts the same run. See Import your work and take the tour.
- Your coding agent can start the same run with
src import everything. See Import from GitHub with your agent. - For one account at a time, with the repositories that you check, see Import a GitHub organization.
1. Open Import everything
Open Import everything.
2. Connect GitHub
If the page shows Connect GitHub:
- Click Connect GitHub.
- On GitHub, let TanStack Source read your organizations and your repositories, private ones too. GitHub asks for the
read:organdreposcopes.
GitHub sends you back to the page.
If the page still shows Connect GitHub, a warning above the button says why:
GitHub is connected, but the token cannot read your organizations.or... cannot read your private repositories.: connect again, and allow access to them on GitHub.GitHub refused the connection. It was revoked, or it expired. Connect GitHub again.: click Connect GitHub again.
The connection stays after the import, so a retry works without a new connection. To remove it, see Remove the GitHub connection.
3. Read the summary
Before anything changes, the page shows What the import copies:
| Line | What it says |
|---|---|
| Forks | Forks are not included. The page says how many forks it leaves out. |
| Already here | Your repositories that have the same name here. The import skips them. |
| Your profile | Your name, bio, website, public email, location, X handle and image. Only the fields that are empty here get a value. |
| Your stars | Each repository that you starred on GitHub and that is here gets a private bookmark. See Your stars. |
| Organizations you own | Each one with its number of repositories, and the organization here that gets them. |
| Organizations that do not come | Each one with the reason. |
4. Pick the repositories, then start
Below the summary, the page lists each repository that can come over: Your repositories first, then one list for each organization that you own. Each repository starts checked.
- Uncheck each repository that you want to leave on GitHub, for example old private experiments.
- To change a full list, click Select all or Select none above it. Each list shows how many of its repositories are checked.
- Click the import button. It says Import everything while every repository is checked. When you uncheck some, it says how many come, for example Import 2 repositories. The run page opens.
An unchecked repository is not in the run. The organization still comes over, also when you uncheck all of its repositories.
5. Watch the run
The run page lists each item, grouped by the account here that gets it. A line at the top counts the items, for example 38 done, 2 running, 1 failed, 3 skipped.
Each item shows Waiting, Importing, Done, Failed or Skipped. A failed or skipped item shows the reason under its name.
Git indexes at most 2 repositories of one owner at a time. In a big run, a repository can stay on Importing while it waits for its turn.
You can close the tab. The import goes on without it. While the import runs, the header shows its progress on every page, for example Importing 38 of 44. Click it to open the run page. On a narrow screen, it shows only an icon.
When the run ends, the header shows one of these:
- Import done: every item is done.
- Import finished with problems: one item or more failed or was skipped.
To remove it from the header, click Dismiss on the run page. The run page stays at /import/github/run.
6. Retry what failed
- Read the reason under the failed item.
- Click Retry next to the item. To retry each failed item, click Retry all failed.
- If the page says
GitHub is not connected. Connect GitHub, then retry., click Connect GitHub. Then click Retry again.
If an organization fails, its repositories fail too. Retry all failed starts the organization first, then its repositories.
Done
Your repositories, your organizations, your profile and your stars are on TanStack Source. Each item of the run shows done, or the reason that it failed or was skipped.
Important
GitHub Actions do not run here. Your workflow files in .github/workflows come over as files only, also in your profile repository. CI runs the TypeScript workflows in .source/workflows. To convert your workflows, see Move from GitHub Actions.
Next: Switch from GitHub has the other steps of the move: your clones, CI and branch rules.
What comes over
- Repositories: the git history, the issues and the pull requests, as described in Import from GitHub. A private repository stays private.
- Organizations: the profile, the image and the repositories. Members who signed in here with GitHub get an invitation.
- Your profile: the fields that are empty here, and your image if you have none.
- Your profile README: your GitHub repository with the name of your login comes over. See Show a README on your profile.
- Your stars: see Your stars.
A small loss does not fail an item. For example, a website that is not valid here shows as a warning on the item: Not copied: website.
Your stars
The run copies your GitHub stars last, after each repository of the run is here. It bookmarks a repository for you when the repository is here and you can read it:
- a repository that this run imported, or that has the same name in the same account here, or
- a repository that its admin verified as that GitHub repository. See Verify your GitHub repository.
The Your stars item tells you how many repositories it bookmarked, and how many of your starred repositories are not here. The import reads up to 3,000 of your stars. Stars that other people gave your repositories on GitHub do not come over. Your imported bookmarks stay private and never affect rankings.
What is skipped, and why
| Skipped | Why |
|---|---|
| Forks | The import never copies a fork. |
| Repositories that you unchecked | They are not in the run. |
| Already here | A repository with the same name in the same account here. |
| Organizations that you do not own | You must be an owner on GitHub. |
| Organization names that are taken here | The import never takes a name from another person. Import that organization from the chooser: see If the name is taken here. |
| Repositories of a skipped organization | They show Its organization was not imported. |
Import again later
Open Import everything again. The new run replaces the last one on the run page, and it skips what is here already.
You cannot start a new run while the last one still starts its items.
Remove the GitHub connection
This is the same connection that Sync with GitHub uses.
- Open Connected accounts. It is also Connections in the account menu of the header.
- Under GitHub sync, click Disconnect.
- Click Disconnect again to confirm.
The token is deleted here and revoked on GitHub. Your imported repositories stay. A retry then asks you to connect GitHub again.