DEV Community

loading...

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

Collapse
thespiciestdev profile image
James Allen

I was waiting for instructions to rm -fr the project and git clone it again 😉 this is much better!

Collapse
antonrich profile image
Anton

rm -rf is such a danger. I heard about how dangerous it is, but was oblivious to its power until I deleted a valuable folder!