{"id":27613999,"url":"https://github.com/thatmattlove/git-clear-history","last_synced_at":"2026-04-18T15:37:00.652Z","repository":{"id":110009568,"uuid":"161019958","full_name":"thatmattlove/git-clear-history","owner":"thatmattlove","description":"Quick \u0026 dirty tool to delete git repository commit history","archived":false,"fork":false,"pushed_at":"2018-12-09T08:34:32.000Z","size":1,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-02T21:04:50.481Z","etag":null,"topics":["bash-script","git","repository-management"],"latest_commit_sha":null,"homepage":"","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/thatmattlove.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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}},"created_at":"2018-12-09T08:30:46.000Z","updated_at":"2018-12-09T16:56:38.000Z","dependencies_parsed_at":null,"dependency_job_id":"857fc82f-d79b-488d-9db6-0ed1ad3ea7a3","html_url":"https://github.com/thatmattlove/git-clear-history","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/thatmattlove/git-clear-history","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thatmattlove%2Fgit-clear-history","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thatmattlove%2Fgit-clear-history/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thatmattlove%2Fgit-clear-history/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thatmattlove%2Fgit-clear-history/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thatmattlove","download_url":"https://codeload.github.com/thatmattlove/git-clear-history/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thatmattlove%2Fgit-clear-history/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31974946,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T00:39:45.007Z","status":"online","status_checked_at":"2026-04-18T02:00:07.018Z","response_time":103,"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":["bash-script","git","repository-management"],"created_at":"2025-04-23T02:28:30.185Z","updated_at":"2026-04-18T15:36:55.912Z","avatar_url":"https://github.com/thatmattlove.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# git-clear-history\n\n[![Open Issues](http://img.shields.io/github/issues/checktheroads/git-clear-history.svg?style=flat-square)](https://github.com/checktheroads/git-clear-history/issues)\n[![Author](http://img.shields.io/badge/author-@checktheroads-lightgrey.svg?style=flat-square)](https://twitter.com/checktheroads)\n\n`git-clear-history` is a simple Bash script that deletes the commit history of a given branch and (optionally) pushes the \"scrubbed\" branch back to the remote repository.\n\n## Installation\n\n1. Clone the repository:\n\n```bash\ngit clone https://github.com/checktheroads/git-clear-history.git\n```\n\n2. (Optional) Make the script executable:\n\n```\nchmod +x ./git-clear-history/git-clear-history.sh\n```\n\n3. (Optional) Copy the executable to your local `bin` directory:\n\n```\ncp ./git-clear-history/git-clear-history.sh /usr/local/bin/git-clear-history\n```\n\n## Usage\nFrom your repository, run the `git-clear-history \u003cbranch\u003e` command, for example:\n\n```bash\ngit-clear-history master\n```\n\nYou'll be asked if you want to push your changes now or not:\n\n\n```\nAre you ready to push? (Y/N)\nPushing...\n```\n\n## Authors, Copyright \u0026 Licensing\n\nCopyright \u0026copy; 2018 [Matt Love](https://twitter.com/checktheroads).\n\nLicensed for use under the terms of the [MIT](https://spdx.org/licenses/MIT.html) license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthatmattlove%2Fgit-clear-history","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthatmattlove%2Fgit-clear-history","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthatmattlove%2Fgit-clear-history/lists"}