Last active
April 6, 2018 23:22
-
-
Save ricokareem/d82a9ab936cff4d2407d0253819ded17 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [[ "$1" != "" ]]; then | |
BASEBRANCH="$1" | |
else | |
BASEBRANCH="development" | |
fi | |
git remote prune origin | |
echo "Base Branch: ${BASEBRANCH}" | |
git branch --merged ${BASEBRANCH} | grep -v ${BASEBRANCH}$ | xargs git branch -d |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment