desktop / desktop/desktop

Prune Branches UI

Open
#13,310 4 comments 19 reactions 0 assignees View on GitHub
enhancement not-planned
Dominant language
TypeScript
Stars
21.8k
Forks
10.5k
Avg merge
1d 15h
Merged PRs (30d)
25

Description

Hello, I am aware that branches are auto-pruned after some time...However in my situation I'm not sure that's happening. And that's fine with me. I use Azure DevOps as the git and use GitHub Desktop, because I love the UI. I'm not sure if this has been suggested before, but I wanted to drop it here.

Currently, there is no way to manually prune branches in your GitHub Desktop environment without deleting them one-by-one, which takes a lot of clicks (and waiting for large repos). I would like to see a feature where you can mass-delete branches.

Here is my proposed solution:

1. In the UI, go to Repository > Prune Branches in the menu.
2. All the branches will be listed, marking them in red if they are **not** found on the remote, and marking them in **orange** if they have not been committed to in over 30 days. Each branch will have a checkbox next to it. If the branch is to be removed, check the box next to it.
3. Click Prune Branches button at the bottom of the UI. After a final confirmation prompt, all checked branches will be removed from local.

Let me know if you need anything additional!

Thanks in advance!

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.