{"id":21928129,"url":"https://github.com/depp/doublegit","last_synced_at":"2026-05-05T04:02:25.149Z","repository":{"id":13841479,"uuid":"16538526","full_name":"depp/doublegit","owner":"depp","description":"Check a git repository into a git repository","archived":false,"fork":false,"pushed_at":"2014-02-05T08:00:26.000Z","size":104,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-22T12:18:46.322Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/depp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-02-05T07:59:43.000Z","updated_at":"2014-04-14T13:32:00.000Z","dependencies_parsed_at":"2022-09-23T15:41:10.284Z","dependency_job_id":null,"html_url":"https://github.com/depp/doublegit","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/depp/doublegit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/depp%2Fdoublegit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/depp%2Fdoublegit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/depp%2Fdoublegit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/depp%2Fdoublegit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/depp","download_url":"https://codeload.github.com/depp/doublegit/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/depp%2Fdoublegit/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32634732,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-04T10:08:07.713Z","status":"online","status_checked_at":"2026-05-05T02:00:06.033Z","response_time":54,"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":[],"created_at":"2024-11-28T22:21:21.552Z","updated_at":"2026-05-05T04:02:25.112Z","avatar_url":"https://github.com/depp.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DoubleGit\n\nWe need to go deeper.\n\nDoubleGit is a tool which allows you to track the version history of the version history in a Git repository.  Wait, what?  Why?\n\nThe purpose of this tool is extremely specialized: it is used for creating a synthetic Git repository, and tracking that synthetic history as it changes over time.  The history must be linear.  No merging is supported.\n\n## The use case\n\nSuppose you are writing a programming tutorial.  The tutorial is accompanied by a git repository, showing the steps in the tutorial.  Then you realize that you want to change the code in step #1.  You could rewrite the history to reflect the tutorial, but you lose the real history.\n\nThis is solved with DoubleGit.  Use DoubleGit to check your repository into a repository, rewrite history in the inner repository, and then export the new history to the outer repository.\n\n## Instructions\n\nThere are two commands: extract and rebuild.  **Warning: These commands are destructive!**\n\nThe extract command extracts the commit history from a Git repository in a way that it can be restored.  It will **DELETE** the output directory if it exists and recreate it.\n\n    $ ls\n    my-repo\n    $ path/to/doublegit/run.sh extract my-repo my-repo-history\n\nThe restore command rebuilds a repository from the extracted version.  It will **DELETE** the output repository if it exists and recreate it.\n\n    $ ls\n    my-repo\n    my-repo-history\n    $ path/to/doublegit/run.sh rebuild my-repo-history my-repo-copy\n    ...\n    $ ls\n    my-repo\n    my-repo-history\n    my-repo-copy\n\nThe SHA-1 hashes of the recreated repository should match those of the original repository.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdepp%2Fdoublegit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdepp%2Fdoublegit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdepp%2Fdoublegit/lists"}