-
Notifications
You must be signed in to change notification settings - Fork 250
Open
Labels
already-doneThis feature already existsThis feature already exists
Description
I have recently changed my workflow to be more branching-heavy and have noticed that I have to delete a lot of branches manually. As far as I know, SourceGit currently only provides pruning in the context menu of a remote (using git remote prune
). It would be nice if SourceGit provided more options to prune branches.
prune when fetching- already supported, see comment below
- this could be added as an option to the fetch menu
git fetch --prune
:remove any remote-tracking references that no longer exist on the remote
- https://git-scm.com/docs/git-fetch#Documentation/git-fetch.txt---prune
- https://git-scm.com/docs/git-fetch#_pruning
- prune local branches
- this could be added to the context menu of
local branches
- remove all local branches that used to track a remote but that remote has been deleted (effectively: clean up the left-over local copies of deleted remote branches)
- apparently there is no git command to do this
- SourceGit already displays a warning icon for local branches whose remote has been deleted, all of those branches could be iterated and deleted separately (using
git -D <branch>
)
- this could be added to the context menu of
Metadata
Metadata
Assignees
Labels
already-doneThis feature already existsThis feature already exists