Some checks failed
ci / cargo test (abacus) (push) Has been cancelled
ci / cargo test (agent-runtime) (push) Has been cancelled
ci / cargo test (context-passport) (push) Has been cancelled
ci / cargo test (game-economy) (push) Has been cancelled
ci / cargo test (ledgerline) (push) Has been cancelled
ci / cargo test (mint) (push) Has been cancelled
ci / cargo test (rago) (push) Has been cancelled
ci / cargo test (relay) (push) Has been cancelled
ci / node suites (push) Has been cancelled
ci / cargo test (toolgate) (push) Has been cancelled
ci / cargo test (turnstile) (push) Has been cancelled
ci / cargo test (vend) (push) Has been cancelled
apps/gitea -> apps/rithub-server; compose services/containers renamed (rithub-server-app/postgres/act-runner) with explicit project name and volume names pinned to the exact existing Docker volumes (no data loss); our own GITEA_* compose/env var names -> RIT_*; new rit-admin CLI wrapper on railyard-box; giteaSession.mjs/giteaOAuth.mjs/giteaInfo.mjs -> ritSession/ritOAuth/ritInfo across 6 apps; GiteaForgeAdapter -> RitForgeAdapter + giteaSyncService/importGiteaRepos/syncGiteaRepos -> rit* in ritgram (tsc clean); apps/console/lib/gitea.ts -> lib/ritProvision.ts; Go internal/giteaclient -> internal/ritclient in rithub-async-import (go build/test clean); new /auth/rit + /forges/rit/connect routes with /gitea back-compat aliases; locale/swagger/footer/captcha template text scrubbed of remaining "Gitea" strings. Deployed to railyard-box: old containers stopped/removed, /srv/railyard-gitea renamed to /srv/rithub-server with a symlink kept, docker compose up -d from the new path, act_runner network-alias fix for its persisted instance URL. Live-verified: docker compose config diff showed zero unintended value changes, DB row counts unchanged (19 users, 635 repos), full route regression 200/expected, 0 "gitea" in headers/bodies on every checked page, real git clone+push over HTTPS and SSH with a disposable account (deleted after). Deferred on purpose (documented in plans/railyard.md): the forge discriminator / DB column names / Postgres role+volume names (data migrations, not a naming change) and the upstream GITEA__ env-to-ini keys and X-Gitea-* wire headers (hardcoded in the vendored engine binary). See plans/railyard.md RIT-OPS/RIT-BRD entry for the full old->new map and live evidence. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
149 lines
8.8 KiB
HTML
149 lines
8.8 KiB
HTML
<!DOCTYPE html>
|
||
<html lang="en">
|
||
<head>
|
||
<meta charset="utf-8">
|
||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||
<title>GitHub Account Flagged or Suspended? How to Move Your Repos — Rithub</title>
|
||
<meta name="description" content="If GitHub flagged or suspended your account, here is exactly how to get your repositories out and running again on your own code host, step by step.">
|
||
<link rel="canonical" href="https://rithub.dev/assets/seo/github-account-flagged-move-repos.html">
|
||
<link rel="stylesheet" href="/assets/css/railyard-brand.css">
|
||
<style>
|
||
body{max-width:760px;margin:0 auto;padding:32px 20px;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif;line-height:1.6;color:#1a1a1a}
|
||
h1{font-size:28px;margin-bottom:8px}
|
||
h2{font-size:20px;margin-top:40px}
|
||
.answer{font-size:18px;padding:16px;border-left:3px solid #444;background:#f6f6f6}
|
||
.cta{display:inline-block;margin-top:16px;padding:12px 20px;background:#1a1a1a;color:#fff;text-decoration:none;border-radius:4px}
|
||
code{background:#f0f0f0;padding:2px 5px;border-radius:3px;font-size:14px}
|
||
pre{background:#f0f0f0;padding:12px;border-radius:4px;overflow-x:auto}
|
||
ol li, ul li{margin-bottom:8px}
|
||
footer{margin-top:60px;font-size:13px;opacity:.7}
|
||
</style>
|
||
<script type="application/ld+json">
|
||
{
|
||
"@context": "https://schema.org",
|
||
"@type": "FAQPage",
|
||
"dateModified": "2026-11-30",
|
||
"mainEntity": [
|
||
{
|
||
"@type": "Question",
|
||
"name": "Can I still get my code if GitHub flagged or suspended my account?",
|
||
"acceptedAnswer": {
|
||
"@type": "Answer",
|
||
"text": "Usually yes, if you still have a local clone of each repository on any machine. A full local git clone already contains your entire commit history, branches, and tags — you do not need GitHub's UI to recover it, only a working 'git push' to a new remote."
|
||
}
|
||
},
|
||
{
|
||
"@type": "Question",
|
||
"name": "What if I don't have a local clone and the account is locked?",
|
||
"acceptedAnswer": {
|
||
"@type": "Answer",
|
||
"text": "Check every machine, CI runner, and teammate that ever cloned the repository — any one of those clones has the full history. GitHub's own account-recovery and support-appeal flow is the only path to the hosted copy itself if no local clone exists anywhere."
|
||
}
|
||
},
|
||
{
|
||
"@type": "Question",
|
||
"name": "Does moving repos off GitHub mean abandoning the account appeal?",
|
||
"acceptedAnswer": {
|
||
"@type": "Answer",
|
||
"text": "No. Moving your repositories to a second host is independent of appealing the suspension. Do both: keep the appeal open, and get a working copy of your code live elsewhere immediately so work is not blocked while the appeal is pending."
|
||
}
|
||
},
|
||
{
|
||
"@type": "Question",
|
||
"name": "Will issues and pull requests also move?",
|
||
"acceptedAnswer": {
|
||
"@type": "Answer",
|
||
"text": "Git history (commits, branches, tags) moves with a normal git push. Issues and pull request threads are platform-specific metadata, not part of the git history, so they need a separate export if the account can still be reached, or are left behind if it cannot."
|
||
}
|
||
}
|
||
]
|
||
}
|
||
</script>
|
||
<script>
|
||
(function () {
|
||
try {
|
||
var ua = navigator.userAgent || '';
|
||
var isAutomated =
|
||
navigator.webdriver === true ||
|
||
/HeadlessChrome|Headless Chrome|Playwright|Puppeteer/i.test(ua);
|
||
var optedOut = window.localStorage && window.localStorage.getItem('rithub.qa.optout') === '1';
|
||
window.__rithubInsightsSkip = isAutomated || optedOut;
|
||
} catch (e) {
|
||
window.__rithubInsightsSkip = false;
|
||
}
|
||
window.rithubInsightsFilter = function (type, payload) {
|
||
return window.__rithubInsightsSkip ? null : payload;
|
||
};
|
||
})();
|
||
</script>
|
||
<script defer src="https://insights.ereboslab.com/s.js" data-site="s_FLXojc0pSLRIIJ6ndYp0p-li" data-before-send="rithubInsightsFilter"></script>
|
||
</head>
|
||
<body>
|
||
|
||
<h1>GitHub Account Flagged or Suspended? How to Move Your Repos</h1>
|
||
<p class="updated" style="font-size:13px;color:#666;margin:0 0 16px" data-marker="rit-geo-freshness-2026-11-30">Updated 2026-11-30</p>
|
||
<p class="answer"><strong>If your GitHub account was flagged or suspended, your code is not gone</strong> — any local clone on your machine, a teammate's machine, or a CI runner already has the full history. Push that clone to a new remote and you are back to working in minutes, while you separately appeal the suspension.</p>
|
||
|
||
<h2>Step 1 — find a working local clone</h2>
|
||
<p>Check, in this order:</p>
|
||
<ul>
|
||
<li>Your own laptop or desktop — any folder you ever ran <code>git clone</code> in.</li>
|
||
<li>CI/CD runners (GitHub Actions hosted runners, GitLab CI, Jenkins, etc.) that checked out the repo.</li>
|
||
<li>Teammates' machines.</li>
|
||
<li>Local backups, including Time Machine or disk images, if nothing live remains.</li>
|
||
</ul>
|
||
<p>A single working clone is enough — <code>.git</code> inside it holds every commit, branch, and tag, independent of whether GitHub still serves the hosted copy.</p>
|
||
|
||
<h2>Step 2 — stand up a new remote</h2>
|
||
<p>Create an account on a code host you do not depend on a single company's suspension policy for — for example Rithub, our own hosted instance:</p>
|
||
<pre>git remote add rithub https://rithub.dev/<you>/<repo>.git
|
||
git push rithub --mirror</pre>
|
||
<p><code>--mirror</code> pushes every branch and tag in one command, not just the branch you have checked out.</p>
|
||
|
||
<h2>Step 3 — verify nothing was lost</h2>
|
||
<pre>git log --oneline -10 # compare against what you remember
|
||
git branch -a # confirm every branch pushed
|
||
git tag # confirm every tag pushed</pre>
|
||
|
||
<h2>Step 4 — keep the GitHub appeal open, separately</h2>
|
||
<p>File or continue GitHub's support appeal for the suspended account. This is independent of Step 1–3 — you do not need to wait for the appeal to resolve before your team is working again on the new remote.</p>
|
||
|
||
<h2>Step 5 — update everything that points at the old remote</h2>
|
||
<ul>
|
||
<li><code>git remote set-url origin <new-url></code> on every machine and CI config once the new host is confirmed working.</li>
|
||
<li>Package registry references, README badges, webhook URLs, and any CI pipeline that pulls from the old GitHub URL.</li>
|
||
</ul>
|
||
|
||
<h2>Frequently asked questions</h2>
|
||
<p><strong>Can I still get my code if the account is flagged?</strong><br>
|
||
Usually yes — any local clone already has your full history; you only need a working <code>git push</code> to a new remote.</p>
|
||
<p><strong>What if no local clone exists anywhere?</strong><br>
|
||
Check every machine, CI runner, and teammate first; GitHub's own support-appeal flow is the only path if truly none exists.</p>
|
||
<p><strong>Does moving off GitHub mean giving up the appeal?</strong><br>
|
||
No — do both. Keep the appeal open and get a working copy live elsewhere immediately.</p>
|
||
<p><strong>Do issues and pull requests move too?</strong><br>
|
||
Git history moves with a normal push. Issues/PR threads are separate metadata and need their own export if the account is still reachable.</p>
|
||
|
||
<a class="cta" href="https://rithub.dev/explore/repos">See repositories already running on Rithub</a>
|
||
<p style="margin-top:12px">Need an account fast? Email <a href="mailto:arhan@scribase.com">arhan@scribase.com</a>.</p>
|
||
|
||
<footer>Rithub — code hosting. The quick version: <a href="/assets/seo/github-flagged-emergency-checklist.html">GitHub flagged: emergency export checklist</a>. More guides:
|
||
<a href="/assets/seo/eu-data-sovereignty-github-alternative.html">EU-based alternative for data sovereignty</a> ·
|
||
<a href="/assets/seo/github-alternative-for-teams.html">GitHub alternative for teams</a> ·
|
||
<a href="/assets/seo/gitlab-alternative-hosted.html">GitLab alternative, hosted</a> ·
|
||
<a href="/assets/seo/bitbucket-alternative.html">Bitbucket alternative</a> ·
|
||
<a href="/assets/seo/private-git-hosting-free.html">private git hosting, free</a> ·
|
||
<a href="/assets/seo/migrate-from-github-to-hosted-git.html">migrate from GitHub to hosted git</a> ·
|
||
<a href="/assets/seo/github-to-rithub-migration-checklist.html">GitHub to Rithub migration checklist</a> ·
|
||
<a href="/assets/seo/github-actions-alternative-hosted.html">GitHub Actions alternative, hosted</a> ·
|
||
<a href="/assets/seo/git-hosting-with-ci-runners.html">git hosting with built-in CI runners</a> ·
|
||
<a href="/assets/seo/github-copilot-training-opt-out.html">opt out of GitHub Copilot training</a> ·
|
||
<a href="/assets/seo/github-down-alternative.html">alternative to use when GitHub is down</a> ·
|
||
<a href="/assets/seo/github-per-seat-pricing-alternative.html">alternative to GitHub's per-seat pricing</a> ·
|
||
<a href="/assets/seo/gitlab-alternative-free-private-repos.html">GitLab alternative with free private repos</a> ·
|
||
<a href="/assets/seo/codeberg-alternative.html">Codeberg alternative</a> ·
|
||
<a href="/assets/seo/migrate-github-issues-and-pull-requests.html">migrate GitHub issues and pull requests</a>.
|
||
</footer>
|
||
</body>
|
||
</html>
|