Skip to content

Cool Command to Clean Up Branches #2

@gillisce

Description

@gillisce

git branch --merged | Select-String -Pattern '^(?!.(main|master)).$' | ForEach-Object { git branch -d $_.ToString().Trim() }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions