Skip to content

Instantly share code, notes, and snippets.

Vitaliy Zasadnyy zasadnyy

Block or report user

Report or block zasadnyy

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@bxt
bxt / git-deletebranches.sh
Last active Mar 21, 2019
Git Delete Merged Branches
View git-deletebranches.sh
#!/bin/bash
MAIN=${1:-development}
BRANCHES=$(git branch --merged $MAIN | grep -v -e 'master\|staging\|development\|\*')
echo Branches merged into $MAIN:
echo $BRANCHES
read -p "Delete these branches (y/n)? " answer
You can’t perform that action at this time.