Is there a way to prune remote branches? #3803
-
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
I usually have this config option: $> git config remote.origin.prune trueAnd then you can go to the Or create a custom command to run |
Beta Was this translation helpful? Give feedback.
-
|
I recommend to do Luka's answer should also work, but needs to be configured for each remote separately. |
Beta Was this translation helpful? Give feedback.

I recommend to do
git config --global fetch.prune true. This way, remote branches are pruned automatically whenever you typegit fetchorgit pullon the command line; it also works in lazygit.Luka's answer should also work, but needs to be configured for each remote separately.