Skip to content

Is there a way to prune remote branches? #3803

Answered by stefanhaller
gaogao-qwq asked this question in Q&A
Discussion options

You must be logged in to vote

I recommend to do git config --global fetch.prune true. This way, remote branches are pruned automatically whenever you type git fetch or git pull on the command line; it also works in lazygit.

Luka's answer should also work, but needs to be configured for each remote separately.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by gaogao-qwq
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants