Skip to content

Instantly share code, notes, and snippets.

@codedoneteam
Created November 25, 2020 20:22
Show Gist options
  • Save codedoneteam/49113d6f228aa1d8be5732afb059c097 to your computer and use it in GitHub Desktop.
Save codedoneteam/49113d6f228aa1d8be5732afb059c097 to your computer and use it in GitHub Desktop.
Git Power Shell
$allBranches = git branch -l
foreach($branch in $allBranches) {
Write-Output $branch.Replace("*", "").Trim()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment