DEV Community

Discussion on: Remove all your local git branches but keep main

Collapse
 
po0q profile image
pO0q 🦄

Nice use of pipes 🦄

The only potential "problem" with the capital D option is that it's a force delete (unlike -d), regardless of any merged status or other potential state.

You might end up desynchronizing remote and local repos and lose any change you made but I guess it's the purpose here. May I ask you the exact context to use it? What do you typically do before/after running thing command?