Skip to content

Pruning local branches and prune on fetching #1663

@Doodeletion

Description

@Doodeletion

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
  • 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>)

Metadata

Metadata

Assignees

Labels

already-doneThis feature already exists

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions