Skip to content

gtl clean ​

Delete local branches that have already been merged, and optionally delete merged remote branches too.

Aliases ​

cl

Usage ​

bash
gtl clean [flags]

Examples ​

bash
gtl clean
gtl clean --dry-run
gtl clean --remote --dry-run

Full Help ​

text
Delete local branches that have already been merged, and optionally delete merged remote branches too.

Usage:
  gtl clean [flags]

Aliases:
  clean, cl

Examples:
gtl clean
gtl clean --dry-run
gtl clean --remote --dry-run

Flags:
      --dry-run   Show what would be deleted without deleting
  -h, --help      help for clean
      --remote    Also delete remote branches

Released under the MIT License.