medium-git-delete-local-branches

Setup

./setup.sh

Remove branches without upstream

./removeNoUpstreamBranches.sh

Cleanup

# Delete branches without upstream
./removeNoUpstreamBranches.sh

## Delete branch on remote repository
git push <remote_name> --delete <branch_name>
git push origin --delete branch1

## Delete branch from local system
## "-D" is an alias for "--delete --force"
git branch -D <branch_name>
git branch -D branch1