Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

git delete all merged branches

# Add this to your alias in .bashrc or .zshrc
# then run git-removed-merged-branches

alias git-removed-merged-branches="git branch --merged | egrep -v '(^*|master|dev)' | xargs git branch -d"
 
PREVIOUS NEXT
Tagged: #git #delete #merged #branches
ADD COMMENT
Topic
Name
4+3 =