Skip to content

Instantly share code, notes, and snippets.

@AlesRuzickaEu
Created May 15, 2018 06:14
Show Gist options
  • Save AlesRuzickaEu/584b27de4935cbb4e1b8201d2d1694b5 to your computer and use it in GitHub Desktop.
Save AlesRuzickaEu/584b27de4935cbb4e1b8201d2d1694b5 to your computer and use it in GitHub Desktop.
function Git-BranchesList() {
git branch --merged | ?{-not ($_ -like '*master')} | %{"$_".trim()}
}
function Git-BranchesClear() {
git branch --merged | ?{-not ($_ -like '*master')} | %{git branch -d "$_".trim()}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment