1๏ธโฃ Save the following script in:
๐ย .config/fish/functions/git-delete-branches.fish
2๏ธโฃ Execute the command:
git-delete-branches "<regex>"
๐น Finds and deletes local/remote branches matching a regex.
๐น Asks for confirmation to avoid surprises.
๐น Saves time and keeps your repo clean.
๐ Full code and explanation ๐
Top comments (0)