3 ms·
Ah, I see at the very bottom of the post is the "one command", in the form of an alias: alias gitpurge=" \ git checkout master && \ git remote update
by claar 12y ago
Ah, I see at the very bottom of the post is the "one command", in the form of an alias:
alias gitpurge=" \
git checkout master && \
git remote update --prune | \
git branch -r --merged | \
grep -v master | \
sed -e 's/origin\//:/' | \
xargs git push origin"