Cleanup local branch and sync with Remote Git


Here is git command to cleanup local branch and sync with remote :

1
git branch –merged | grep -v "\*" | egrep -v "master|dev" | xargs -n 1 git branch -d

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.