{"id":24837246,"url":"https://github.com/letieu/git-branch-killer","last_synced_at":"2026-07-06T15:31:35.688Z","repository":{"id":184575539,"uuid":"672136731","full_name":"letieu/git-branch-killer","owner":"letieu","description":"Script to bulk remove git branch locally and remote","archived":false,"fork":false,"pushed_at":"2023-07-29T03:40:33.000Z","size":4,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-29T23:45:26.321Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/letieu.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}},"created_at":"2023-07-29T03:38:00.000Z","updated_at":"2024-07-23T09:49:15.000Z","dependencies_parsed_at":null,"dependency_job_id":"4df8b488-36b7-4d55-b79d-7a84fef88490","html_url":"https://github.com/letieu/git-branch-killer","commit_stats":null,"previous_names":["letieu/git-branch-killer"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/letieu/git-branch-killer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/letieu%2Fgit-branch-killer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/letieu%2Fgit-branch-killer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/letieu%2Fgit-branch-killer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/letieu%2Fgit-branch-killer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/letieu","download_url":"https://codeload.github.com/letieu/git-branch-killer/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/letieu%2Fgit-branch-killer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35197534,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-06T02:00:07.184Z","response_time":106,"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":"2025-01-31T05:53:40.280Z","updated_at":"2026-07-06T15:31:34.956Z","avatar_url":"https://github.com/letieu.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Git Branch Deletion Script\n\nThis script (`remove.mjs`) helps you delete Git branches locally or remotely. Before using the script, please ensure that you have `zx` installed globally on your system.\n\n## Prerequisites\n\n- **zx**: Install `zx` globally using the following command:\n\n   ```bash\n   npm install -g zx\n   ```\n\n## How to Use\n\n1. Clone the Git repository or download the script (`remove.mjs`) to your local system.\n\n2. Run the script using `zx` in your repository's root directory. For example:\n\n   ```bash\n   cd my-project\n   zx /path/to/remove.mjs\n   ```\n\n## Options\n\nThe script supports the following options:\n\n- `--remote`: Use this flag to delete remote branches instead of local branches. For example:\n\n  ```bash\n  zx /path/to/remove.mjs --remote\n  ```\n\n- `--exclude`: You can exclude specific branches from deletion, by default the script will not delete the `main, master, develop, development, and test` branches. For example:\n\n  ```bash\n  zx /path/to/remove.mjs --exclude=feature-x,bugfix-y\n  ```\n\n## Important Notes\n\n- Certain branches (`main`, `master`, `develop`, `development`, and `test`) are considered permanent and will not be deleted to prevent accidental removal of important branches.\n\n- Attempting to delete the `main` branch will result in an error message, and the script will terminate to protect against accidental deletion.\n\n---\n\nFeel free to use and modify this script to suit your specific requirements. If you encounter any issues or have suggestions for improvements, please create an issue or submit a pull request on [GitHub](https://github.com/your-repo-url).\n\nHappy branching and coding! 😄\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fletieu%2Fgit-branch-killer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fletieu%2Fgit-branch-killer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fletieu%2Fgit-branch-killer/lists"}