DEV Community

Discussion on: Alias to remove deleted branches in a git remote at once

Collapse
 
saltyshiomix profile image
Shiono Yoshihide

What about git fetch --prune option?

Collapse
 
snaka profile image
Shinji NAKAMATSU

Thanks for your comment.
I have already done that by setting git config --global fetch.prune true.
But sometimes branches are left behind ( I'm not sure in what case they are not deleted... ๐Ÿ˜… )