{"id":17495812,"url":"https://github.com/stavxyz/gitmux","last_synced_at":"2026-01-29T05:09:19.781Z","repository":{"id":48490862,"uuid":"212924438","full_name":"stavxyz/gitmux","owner":"stavxyz","description":"A git repository multiplexer. A monorepo surgeon?","archived":false,"fork":false,"pushed_at":"2026-01-28T07:02:21.000Z","size":279,"stargazers_count":16,"open_issues_count":6,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-28T12:54:22.353Z","etag":null,"topics":["filter-branch","git","monorepo","repository"],"latest_commit_sha":null,"homepage":"https://gitmux.com","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/stavxyz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":".github/SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2019-10-05T00:49:35.000Z","updated_at":"2026-01-28T07:02:24.000Z","dependencies_parsed_at":"2022-08-19T13:32:17.885Z","dependency_job_id":null,"html_url":"https://github.com/stavxyz/gitmux","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/stavxyz/gitmux","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stavxyz%2Fgitmux","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stavxyz%2Fgitmux/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stavxyz%2Fgitmux/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stavxyz%2Fgitmux/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stavxyz","download_url":"https://codeload.github.com/stavxyz/gitmux/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stavxyz%2Fgitmux/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28863229,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-28T22:56:21.783Z","status":"online","status_checked_at":"2026-01-29T02:00:06.714Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["filter-branch","git","monorepo","repository"],"created_at":"2024-10-19T14:32:26.748Z","updated_at":"2026-01-29T05:09:19.768Z","avatar_url":"https://github.com/stavxyz.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gitmux\n\n[![CI](https://github.com/stavxyz/gitmux/actions/workflows/ci.yml/badge.svg)](https://github.com/stavxyz/gitmux/actions/workflows/ci.yml)\n[![GitHub Release](https://img.shields.io/github/v/release/stavxyz/gitmux)](https://github.com/stavxyz/gitmux/releases/latest)\n[![License: GPL v3](https://img.shields.io/badge/license-GPLv3-blue.svg)](https://www.gnu.org/licenses/gpl-3.0)\n[![Docs](https://img.shields.io/badge/docs-gitmux.com-blue)](https://gitmux.com)\n\n**Extract files from one repo to another while preserving full git history.**\n\n```bash\n# Extract packages/auth from a monorepo into its own repo\n./gitmux.sh -r github.com/company/monorepo -t github.com/company/auth-lib -d packages/auth -s\n```\n\nEvery commit, every blame, every bisect — preserved.\n\n**[Documentation](https://gitmux.com)** · **[Usage Reference](https://gitmux.com/usage.html)** · **[FAQ](https://gitmux.com/faq.html)**\n\n---\n\n## Why gitmux?\n\n- **Full history** — Not a copy-paste. Every commit follows the code.\n- **PR-based** — Changes go through pull requests, never direct pushes.\n- **10x faster** — Auto-uses [git-filter-repo](https://github.com/newren/git-filter-repo) when available.\n- **Multi-path** — Migrate multiple directories in one operation.\n\n## Install\n\n```bash\ngit clone https://github.com/stavxyz/gitmux.git\ncd gitmux \u0026\u0026 ./gitmux.sh -h\n```\n\n**Optional** (10x speedup): `brew install git-filter-repo` or `pip install git-filter-repo`\n\n## Quick Start\n\n### Extract a subdirectory\n\n```bash\n./gitmux.sh \\\n  -r https://github.com/source-owner/monorepo \\\n  -t https://github.com/dest-owner/extracted-lib \\\n  -d packages/my-library \\\n  -s  # Submit PR automatically\n```\n\n### Migrate multiple paths\n\n```bash\n./gitmux.sh \\\n  -r https://github.com/source/monorepo \\\n  -t https://github.com/dest/new-repo \\\n  -m 'src/lib:packages/lib' \\\n  -m 'tests/lib:packages/lib/tests' \\\n  -s\n```\n\n### Rewrite authorship\n\n```bash\n./gitmux.sh \\\n  -r source -t dest \\\n  --author-name \"Your Name\" \\\n  --author-email \"you@example.com\" \\\n  --coauthor-action claude \\\n  -s\n```\n\n## How It Works\n\n```\n┌─────────────┐                      ┌─────────────┐\n│   Source    │ ──── filter ────▶    │   Filtered  │\n│ Repository  │                      │   Content   │\n└─────────────┘                      └──────┬──────┘\n                                            │\n                                       rebase onto\n                                            │\n                                            ▼\n┌─────────────┐                      ┌─────────────┐\n│ Destination │ ◀── pull request ── │   Feature   │\n│   Branch    │                      │   Branch    │\n└─────────────┘                      └─────────────┘\n```\n\n1. **Clone** source to temp workspace\n2. **Filter** to extract selected content (preserves history)\n3. **Rebase** onto destination branch\n4. **Push** to feature branch\n5. **PR** via GitHub CLI (optional)\n\n## Documentation\n\nFull documentation available at **[gitmux.com](https://gitmux.com)**:\n\n- [Usage Reference](https://gitmux.com/usage.html) — All CLI options and environment variables\n- [Rebase Strategies](https://gitmux.com/rebase-strategies.html) — Conflict resolution and diff algorithms\n- [Filter Backend](https://gitmux.com/filter-backend.html) — filter-repo vs filter-branch\n- [FAQ](https://gitmux.com/faq.html) — Common questions answered\n\n## Contributing\n\nSee [CONTRIBUTING.md](CONTRIBUTING.md) for development setup and guidelines.\n\n## License\n\n[GPL-3.0](LICENSE) — Free software. Share improvements.\n\n---\n\n**[gitmux.com](https://gitmux.com)** · **[Issues](https://github.com/stavxyz/gitmux/issues)** · **[Email](mailto:hi@stav.xyz)**\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstavxyz%2Fgitmux","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstavxyz%2Fgitmux","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstavxyz%2Fgitmux/lists"}