{"id":30710911,"url":"https://github.com/roboloop/repo-rewriter","last_synced_at":"2026-04-07T23:01:32.862Z","repository":{"id":312938173,"uuid":"1049030379","full_name":"roboloop/repo-rewriter","owner":"roboloop","description":"🛠️ A set of scripts for making targeted adjustments in Git repositories 🐙📂","archived":false,"fork":false,"pushed_at":"2025-11-03T22:00:46.000Z","size":25,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-11-04T00:05:33.766Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/roboloop.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"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":"2025-09-02T11:40:46.000Z","updated_at":"2025-11-03T22:00:51.000Z","dependencies_parsed_at":null,"dependency_job_id":"7e933c7f-5935-48f2-831a-dac80c9ba3f9","html_url":"https://github.com/roboloop/repo-rewriter","commit_stats":null,"previous_names":["roboloop/repo-rewriter"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/roboloop/repo-rewriter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roboloop%2Frepo-rewriter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roboloop%2Frepo-rewriter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roboloop%2Frepo-rewriter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roboloop%2Frepo-rewriter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/roboloop","download_url":"https://codeload.github.com/roboloop/repo-rewriter/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roboloop%2Frepo-rewriter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31532336,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-07T16:28:08.000Z","status":"ssl_error","status_checked_at":"2026-04-07T16:28:06.951Z","response_time":105,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2025-09-03T01:48:55.762Z","updated_at":"2026-04-07T23:01:32.854Z","avatar_url":"https://github.com/roboloop.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🧬 Repo-Rewriter\n\n\u003e ⚠️ It's an educational project about GIT internals.\n\u003e \n\u003e It uses plumbing commands to achieve its goal.\n\n`repo-rewriter` is a collection of small composable shell utilities designed to help you **explore, modify, and sign** Git repositories.\nEverything is written in shell, with minimum external dependencies beyond Git itself.\n\n## ✨ Features\n\n- **History exploration**\n  - `find_in_*` – search in blobs, commits, or filepaths\n  - `print_authors` – list all commit authors\n  - `print_files` – show all tracked files\n\n- **Automated rewriting**\n  - `drop_*` — drop files by patterns, blobs by ids\n  - `replace_in_*` – perform safe text replacements in blobs, commits, or filepaths\n  - `rewrite_authors` – map and normalize author identities\n  - `rewrite_timestamps` – unify all timestamps to UTC\n  - `sign_commits` – cryptographically sign all commits with your GPG key\n\n- **Interactive history rebuild**\n  - `rewrite_history` – step-by-step reconstruction of a linear repository\n    (supports pick/commit/skip/rollback/finalize/abort flow)\n\n- **Portable \u0026 transparent**\n  - POSIX-compliant shell (works on macOS and Linux)\n  - Self-documenting commands with `--help`\n\n## 🚀 Quick Start\n\n```bash\n# clone repository\ngit clone https://github.com/roboloop/repo-rewriter\ncd repo-rewriter\n\n# run any command, check docs --help\nREPO_DIR=\"$(pwd)\" ./bin/rewriter --help\nREPO_DIR=\"$(pwd)\" ./bin/rewriter print_authors --help\nREPO_DIR=\"$(pwd)\" ./bin/rewriter print_authors\n````\n\nAll commands respect a single required environment variable:\n\n| Variable   | Description                     |\n| ---------- | ------------------------------- |\n| `REPO_DIR` | Path to the Git repository root |\n\n## ✏️ TODO\n\n- Installation script\n- Reflog support\n- Shellcheck\n- Tests\n\n## 🧾 License\n\nMIT © 2025 — Crafted with ❤️ in pure shell.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froboloop%2Frepo-rewriter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Froboloop%2Frepo-rewriter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froboloop%2Frepo-rewriter/lists"}