git-forge-migration

Migrate and mirror repositories between GitHub, Gitea, Codeberg, and other git forges.

10|2|Updated May 6, 2026
Ready to run
npx skills add https://github.com/jcrabapple/hermes-skills --skill git-forge-migration-jcrabapple
💬 Prompt for ChatGPT / Claude Chat▼
Please help me install this Agent Skill.
Skill: git-forge-migration
Source: https://github.com/jcrabapple/hermes-skills/tree/main/devops/git-forge-migration
Command: npx skills add https://github.com/jcrabapple/hermes-skills --skill git-forge-migration-jcrabapple

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Moving repositories between git hosting platforms involves inventorying repos, estimating CI migration cost, choosing a target forge, and setting up mirrors — a process that is easy to get wrong without a structured plan. ## Core Features & Use Cases - Repo Inventory & Classification: Uses the GitHub CLI to list repos and classify them as forks vs originals and private vs public, since only originals are migration candidates. - CI Migration Cost Estimation: Counts GitHub Actions workflows per repo to gauge porting effort, noting that Gitea Actions is syntax-compatible while Codeberg's Woodpecker is not. - Decision Framework & Mirror-First Strategy: Recommends a Gitea-primary, Codeberg/GitHub-mirror topology and a phased execution plan with push mirrors before flipping the primary remote. - Use Case: You are evaluating leaving GitHub after outages and want to move your original repos to a self-hosted Gitea while keeping GitHub and Codeberg as mirrors — this Skill walks you through assessment, decision, and phased migration. ## Quick Start Help me assess my GitHub repositories and plan a migration to my self-hosted Gitea with Codeberg as a public mirror.

Frequently Asked Questions about git-forge-migration

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I migrate repositories from GitHub to Gitea?▼

Inventory repos with gh repo list, classify forks versus originals, then create migration repos on Gitea and set up push mirrors so every push lands on both hosts. Flip the origin remote to Gitea only after mirrors have run for weeks.

Should I migrate to Codeberg or self-hosted Gitea?▼

Neither beats GitHub on raw uptime, so availability comes from multi-remote redundancy. Gitea suits private repos and Actions-compatible CI via act_runner, while Codeberg works as a nonprofit public mirror for FOSS visibility.

Do GitHub Actions workflows work on Gitea and Codeberg?▼

Gitea Actions is syntax-compatible with GitHub Actions, making it the cheaper CI migration target. Codeberg uses Woodpecker CI, which is not compatible, so workflows there must be rewritten.

Should forked repositories be migrated to another forge?▼

Forks never migrate because they exist to contribute PRs to upstream projects hosted on GitHub. Only original repositories are migration candidates; forks and GitHub Pages sites stay on GitHub.

Why does gh repo list --json parent cause errors in scripts?▼

The parent object's fields vary and nameWithOwner can be absent, so indexing fields blindly fails. Read the JSON defensively with .get() instead of direct key access.