Skip to content

Instantly share code, notes, and snippets.

View fALKENdk's full-sized avatar
🦄

Kasper Christensen fALKENdk

🦄
View GitHub Profile

Keybase proof

I hereby claim:

  • I am falkendk on github.
  • I am falkendk (https://keybase.io/falkendk) on keybase.
  • I have a public key ASD5XRJGhdxBEg3EdBxJ7lFleorG0j7Qkx_XU4RrCIcQhgo

To claim this, I am signing this object:

#!/bin/bash
branches_to_die=$(git branch --no-color --merged origin/master | grep -v '\smaster$')
echo "Local branches to be deleted:"
echo "$branches_to_die"
kill_branches () {
echo $branches_to_die | xargs -n 1 git branch -d
}