Pages

Friday, January 30, 2015

Delete all git branches except master

$ git branch | grep -v "master" | sed 's/^[ *]*//' | sed 's/^/git branch -D /' | bash

Delete all your branches except master (useful after archiving branches)




commandlinefu.com


by David Winterbottom (codeinthehole.com)






from All commands http://ift.tt/1EvfuSk

No comments:

Post a Comment