# Show remote fully merged branches echo "The following remote branches are fully merged and will be removed:" git branch -r --merged master | sed 's/ *origin\///' | grep -v 'master$'
read -p "Continue (y/n)? " if [ "$REPLY" == "y" ] then # Remove remote fully merged branches git branch -r --merged master | sed 's/ *origin\///' \ | grep -v 'master$' | xargs -I% git push origin :% echo "Done!" say "Obsolete branches are removed" fi
#This scirpt doesn't work if you have multiple remotes. Piping the output of git branch -r --merged master both times that it's run into grep ' *origin/' before piping it through the sed fixes it.
---------- many script for you! https://gist.github.com/dciccale
----------------------------------------------
The higher the degree, the greater the respect given to the humblest!RAD 11.3