An open API service indexing awesome lists of open source software.

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"

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`.