git branch extension
Outputs git branch as objects (unless, -m, -c, -column, -format, or -show-current are passed)
EXAMPLE 1
git branch # Get a list of branches
EXAMPLE 2
git branch | # Get all branches
Where-Object -Not IsCurrentBranch | # where it is not the current branch
Where-Object BranchName -NotIn 'main', 'master' | # and the name is not either main or master
git branch -d # then attempt to delete the branch.
git.branch
git.branch.deleted
git.branch.detail
Extensions/Git.Branch.UGit.Extension.ps1 [<CommonParameters>]