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/sh | |
# Pull/Fetch remote branches and prune local branches that have been deleted | |
# Usage: prune_branches.sh [remote] | |
# If remote is not specified, it defaults to origin | |
# If remote is specified, it must be a valid remote name | |
set -e | |
# Get the remote name | |
if [ -z "$1" ]; then | |
remote="origin" |
OlderNewer