shahabganji / GitClearBranches

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GitClearBranches

It clears all branches merged with the HEAD or Active branch and no longer has a remote branch.

Installation

dotnet tool install --global GitClearBranches --version 1.0.1

Usage

First run

git fetch --all --prune

then

git rmb

Parameters

  • -y or --yes to 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

About

License:MIT License


Languages

Language:C# 100.0%