Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env bash
- BRANCH=$1
- if [[ -z "$BRANCH" ]]; then
- read -p "Branch to delete: " BRANCH
- fi
- echo "Deleting GIT branch: ${BRANCH} both locally and remotely..."
- git po --delete ${BRANCH}
- git branch -d ${BRANCH}
- echo "Done deleting branch: ${BRANCH}!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement