git fetch --prune

Category: Git - Core

git fetch --prune

Fetch and remove remote-tracking branches no longer on remote

Fetches and removes any local tracking branches that no longer exist on the remote.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.