DEV Community

Discussion on: How to delete all your local branches but keep master

Collapse
 
buphmin profile image
buphmin

Just make sure to back up everything first :P

git push --all {remote}

Oh man if I forgot to back up first...that would ruin so many things for me. We have a tendency to re-prioritize things so some branches are left half done for awhile, sometimes many months.