When I fetch from a remote, I would like the option to prune the remote's branches so my local copy matches exactly what's on the remote. The equivalent command line option for origin would be:
git fetch origin --prune
Ideally, I'd like the Fetch from remote context menu item to bring up a dialog with fetch option(s), including Prune branches. However, I'd be willing to do this as a custom action, if only custom actions were a) available on remotes, and b) had a $REPO_NAME option, instead of just $REPO, which gives me the path to my local repo, which is not what I need in this case.
See also:
It appears there's a fair bit of desire for pruning.
- is related to
-
SRCTREE-4189 Remotes branches don't disappear after deleted them directly on GitHub
-
- Needs Triage
-
-
SRCTREE-3131 Prune on Pull
-
- Needs Triage
-
-
SRCTREE-1114 Add 'Prune when fetching' Preferences option
- Closed
-
SRCTREE-1481 Add user preference to include the PRUNE option in the automatic Remote status refresh
- Closed
-
SRCTREE-4062 Provide an option to prune local branches
- Closed