Skip to content

Instantly share code, notes, and snippets.

@selfup
Created April 9, 2019 19:13
Show Gist options
  • Save selfup/6fb610cb21de8a3691f6897e85550070 to your computer and use it in GitHub Desktop.
Save selfup/6fb610cb21de8a3691f6897e85550070 to your computer and use it in GitHub Desktop.
git branch \
| grep -v '* master' \
| grep UPT \
| elixir -e 'IO.read(:all) |> String.trim("\n") |> fn args -> "git branch -d #{args}" end.() |> to_charlist |> :os.cmd |> IO.puts'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment