for k in $(git branch | sed /\*/d); do
if [ -n "$(git log -1 --since='12 week ago' -s $k)" ]; then
git branch -D $k
fi
done
Created
December 5, 2014 13:55
-
-
Save danishabdullah/e7e50901862c8a4ea90a to your computer and use it in GitHub Desktop.
delete unnecessary branches in git
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment