It clears all branches merged with the HEAD or Active branch and no longer has a remote branch.
dotnet tool install --global GitClearBranches --version 1.0.1First run
git fetch --all --prunethen
git rmb-
-yor--yesto skip the prompt for deleting branches -
any other branch name as parameter to make them an exception from getting removed
PS: The following branch names automatically get skipped:
- master
- main
- dev
- develop
- prod