{"id":16826620,"url":"https://github.com/benwiederhake/git_quine","last_synced_at":"2025-08-31T16:35:15.426Z","repository":{"id":149598310,"uuid":"197009146","full_name":"BenWiederhake/git_quine","owner":"BenWiederhake","description":"      A program that recreates its own repository","archived":false,"fork":false,"pushed_at":"2023-01-08T16:28:15.000Z","size":10,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-10T20:56:51.829Z","etag":null,"topics":["git","quine"],"latest_commit_sha":null,"homepage":"","language":"Python","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/BenWiederhake.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}},"created_at":"2019-07-15T13:57:05.000Z","updated_at":"2023-04-18T01:38:00.000Z","dependencies_parsed_at":null,"dependency_job_id":"6469cac2-8e8c-4593-9f8b-2647304bcf09","html_url":"https://github.com/BenWiederhake/git_quine","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BenWiederhake%2Fgit_quine","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BenWiederhake%2Fgit_quine/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BenWiederhake%2Fgit_quine/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BenWiederhake%2Fgit_quine/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BenWiederhake","download_url":"https://codeload.github.com/BenWiederhake/git_quine/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247318746,"owners_count":20919483,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["git","quine"],"created_at":"2024-10-13T11:17:56.688Z","updated_at":"2025-04-05T10:14:09.339Z","avatar_url":"https://github.com/BenWiederhake.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# git_quine\n\nA program that recreates its own repository. Why?  Because fun!\n\n## Table of Contents\n\n- [Install](#install)\n- [Usage](#usage)\n- [Contribute](#contribute)\n\n## Install\n\nHow do you mean?  It's a quine.  It produces itself as output.\nThere is nothing to install.\n\n## Motivation\n\n\u003e Bäärenkatapulte!\n\n## Usage\n\nJust run it!  It should produce exactly the same commits on every platform.\n\n```\n$ ls -a\n.git .gitignore git_quine.py  LICENSE  README.md\n$ ./git_quine.py\nGit repository created in git_quine/\n$ ls git_quine/\n.git .gitignore git_quine.py  LICENSE  README.md\n$ diff -su \u003c(git rev-parse HEAD) \u003c(git -C git_quine/ rev-parse HEAD)\nFiles /dev/fd/63 and /dev/fd/62 are identical\n```\n\n### Stand-alone\n\nTo prove that it doesn't just copy the files, I encourage you to take `git_quine.py`,\nmove it somewhere else, delete the repository, and run the quine.\nYou will see that it reproduces the entire repository *without* access to anything else.\n\n### Feature support\n\nThis quine supports arbitrary commit messages and times, added files, and changes to files.\n\nNaturally, it can't reproduce *all* features of git.  Most importantly,\nthis quine currently only understands history as a single branch, consisting only of single-parent commits.\nAlso, this quine is its own author *and* committer, because that simplifies things.\n\nDiffs are stored inefficiently.\n\nIf you take a deep dive into how this quine works, you will see that these missing features can be easily added.\n\n## Contribute\n\nFeel free to dive in! [Open an issue](https://github.com/BenWiederhake/git_quine/issues/new) or submit PRs.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbenwiederhake%2Fgit_quine","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbenwiederhake%2Fgit_quine","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbenwiederhake%2Fgit_quine/lists"}