{"id":20652462,"url":"https://github.com/thesofakillers/git-activity-exporter","last_synced_at":"2025-10-28T10:40:50.473Z","repository":{"id":70961858,"uuid":"588331052","full_name":"thesofakillers/git-activity-exporter","owner":"thesofakillers","description":"🟩 Export commit activity (and nothing else) from a source repo to a new repo","archived":false,"fork":false,"pushed_at":"2023-05-18T07:40:16.000Z","size":23,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-07T19:03:32.051Z","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":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thesofakillers.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":"2023-01-12T21:42:12.000Z","updated_at":"2023-01-13T07:05:04.000Z","dependencies_parsed_at":"2023-07-24T05:15:39.845Z","dependency_job_id":null,"html_url":"https://github.com/thesofakillers/git-activity-exporter","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/thesofakillers/git-activity-exporter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thesofakillers%2Fgit-activity-exporter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thesofakillers%2Fgit-activity-exporter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thesofakillers%2Fgit-activity-exporter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thesofakillers%2Fgit-activity-exporter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thesofakillers","download_url":"https://codeload.github.com/thesofakillers/git-activity-exporter/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thesofakillers%2Fgit-activity-exporter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281425557,"owners_count":26499031,"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","status":"online","status_checked_at":"2025-10-28T02:00:06.022Z","response_time":60,"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-16T17:35:05.008Z","updated_at":"2025-10-28T10:40:50.452Z","avatar_url":"https://github.com/thesofakillers.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# git-activity-exporter\n\n🟩 Export commit activity (and nothing else) from a source repo to a new repo\n\n## Installation\n\n```bash\ngit clone git@github.com:thesofakillers/git-activity-exporter.git # clone\ncd git-activity-exporter                                          # change directory\ncmake .                                                           # prepare build\nmake install                                                      # install\n```\n\n## Usage\n\n```\nUsage: git-activity-exporter [options]\n\nOptions:\n--source=\u003csource\u003e            Required. The path to the source repository\n--target=\u003ctarget\u003e            Required. The path to the target repository\n--author=\u003cauthor\u003e            Optional. The author of the commits. Defaults to \"\"\n--commit_message=\u003cmessage\u003e   Optional. The commit message. Defaults to \"\"\n--branches=\u003cbranches\u003e        Optional. The branches to copy commits from.\n                                        Space separated list of branches.\n                                        Defaults to the current branch and its parents\n```\n\nWARNING: this isn't very well tested 😅. I would suggest making a backup of your\nsource repo before using this tool.\n\n## Why\n\n### Scenario 1\n\nYou work at company, which uses GitLab to host their git repositories. You are\nabout to leave the company. Before you leave, you'd like your commits to show on\nyour GitHub contributions graph. You'd rather not simply copy the company\nrepository to your personal GitHub account, because you don't own it.\n\nInstead, with git-activity-exporter, you copy your commit dates from the company\nrepository to a new repository. These commits are blank and contain no\ninformation. You can push this new repository to your personal GitHub account,\nwithout worrying about any sensitive information being leaked.\n\n### Scenario 2\n\nYou share a repo with a team. At one point as a team you (for some reaosn)\ndecide that instead of making new repositories that import the repo, you will\nsimply make branches, one for every user. Your work in your branch does not show\nup on your contributions graph.\n\nIf you simply make a clone repo of your branch and set your branch as default in\nthat repo, your commits in the main branch get double-counted. If instead you\nexport only the commits from your branch with git-activity-exporter, you can\ncleanly show your activity in your branch without double-counting your previous\ncontributions before branching.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthesofakillers%2Fgit-activity-exporter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthesofakillers%2Fgit-activity-exporter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthesofakillers%2Fgit-activity-exporter/lists"}