{"id":18828833,"url":"https://github.com/nekonenene/git-branch-delete-merged","last_synced_at":"2025-09-03T00:32:02.907Z","repository":{"id":189422990,"uuid":"680648076","full_name":"nekonenene/git-branch-delete-merged","owner":"nekonenene","description":"Delete local branches that have been merged (includes \"Squash and merge\")","archived":false,"fork":false,"pushed_at":"2023-08-23T15:46:33.000Z","size":27,"stargazers_count":4,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-11-08T01:40:19.188Z","etag":null,"topics":["cli","git","github","go","golang"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nekonenene.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-08-19T23:44:11.000Z","updated_at":"2024-09-14T05:48:23.000Z","dependencies_parsed_at":"2024-11-08T01:37:48.533Z","dependency_job_id":"8a7a65f6-e52c-444a-914a-72c9de36719b","html_url":"https://github.com/nekonenene/git-branch-delete-merged","commit_stats":null,"previous_names":["nekonenene/git-branch-delete-merged"],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nekonenene%2Fgit-branch-delete-merged","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nekonenene%2Fgit-branch-delete-merged/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nekonenene%2Fgit-branch-delete-merged/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nekonenene%2Fgit-branch-delete-merged/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nekonenene","download_url":"https://codeload.github.com/nekonenene/git-branch-delete-merged/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":231819057,"owners_count":18431239,"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":["cli","git","github","go","golang"],"created_at":"2024-11-08T01:37:32.756Z","updated_at":"2024-12-30T06:15:30.678Z","avatar_url":"https://github.com/nekonenene.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# git-branch-delete-merged\n\nThis CLI app deletes local branches that have been merged **also \"[Squash and merge](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/incorporating-changes-from-a-pull-request/about-pull-request-merges#squash-and-merge-your-commits)\"**.\n\n## Installation\n\n```sh\ngo install github.com/nekonenene/git-branch-delete-merged@v1\n```\n\n## Usage\n\n### General usage\n\nIf you want to delete a branch that has merged into the `main` branch:\n\n```sh\ngit-branch-delete-merged --base-branch main\n```\n\nAnd if the branch to delete exists, you will get a prompt like this:\n\n```\nTarget branches: [dev1]\n\nAre you sure to delete 'dev1' branch? [y|n|l|d|q|help]:\n```\n\nPlease type one and press enter.\n\n* `y`: Yes, delete the branch\n* `n`: No, skip deleting\n* `l`: Show git logs of the branch\n* `d`: Show the latest commit of the branch and its diff\n* `q`: Quit immediately\n* `h`: Show help\n\n### Skip prompt\n\nIf you want to delete all merged branches without confirmation, `--yes` option will be useful.\n\n```sh\ngit-branch-delete-merged --base-branch main --yes\n```\n\n\n## Thank you\n\n[not-an-aardvark/git-delete-squashed](https://github.com/not-an-aardvark/git-delete-squashed) is the reference code that helps finding branches which has squashed and merged.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnekonenene%2Fgit-branch-delete-merged","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnekonenene%2Fgit-branch-delete-merged","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnekonenene%2Fgit-branch-delete-merged/lists"}