Created
November 15, 2020 20:54
-
-
Save lemenkov/93c79dd75b74122f885670de9c2854bd to your computer and use it in GitHub Desktop.
Remove unnecessary branches after checkout
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for i in `git branch -a |grep remotes/lemenkov | sed -e "s,^\s*remotes/lemenkov/,,g"|grep -v master$` ; do git push lemenkov :${i} ; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment