Refresh all remotes and remove stale remote-tracking branches.
Section: Remotes and Collaboration
Fetch all remotes and prune
bash
bash
git fetch --all --pruneLearn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Remotes and Collaboration