https://github.com/rudyhuynh/git-clear-branch
Delete all your local branches except "master"
https://github.com/rudyhuynh/git-clear-branch
branches git npx
Last synced: 6 months ago
JSON representation
Delete all your local branches except "master"
- Host: GitHub
- URL: https://github.com/rudyhuynh/git-clear-branch
- Owner: rudyhuynh
- Created: 2019-06-20T08:36:48.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-05-27T03:27:00.000Z (over 1 year ago)
- Last Synced: 2025-04-11T08:17:02.983Z (6 months ago)
- Topics: branches, git, npx
- Language: JavaScript
- Size: 19.5 KB
- Stars: 5
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
To clear all your local branches (except `master`, `main` and current branch), run below at your git repo:
```
npx git-clear-branch
```Your machine must have `npx` installed, which is included in newest NodeJS.
To retrieve commit of deleted branch, use `git reflog`.