Interview Prep/Git & GitHub/Conflicts, remotes, fetch, pull and push

What does `git fetch --prune` do and why enable `fetch.prune`?

IntermediateConceptConflicts, remotes, fetch, pull and push
Answer

It deletes remote-tracking refs for branches that no longer exist on the remote, so git branch -r stops showing deleted PR branches. Setting fetch.prune true does it on every fetch/pull.

All Git & GitHub questions Roadmap: Git & GitHub

More on Conflicts, remotes, fetch, pull and push