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: about 1 year 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 (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2024-05-27T03:27:00.000Z (about 2 years ago)
- Last Synced: 2025-04-11T08:17:02.983Z (about 1 year 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`.