-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ability to delete multiple/many local branches #9824
Comments
Thanks for contributing @doughyde. Branches merged and deleted on GitHub are automatically removed from your local repository in GitHub Desktop after 2 weeks (if you have not checked out the branch locally in the meantime). Would that work for your situation? If not, can you can share a few more details about your specific use case? |
@steveward Very cool, I had no idea. Apparently I am too OCD (or have too many (small)) PR's in a week. My ideal number would be 2-5 days, not 14. Maybe it's a preference so A) people know the feature exists; B) people can adjust. |
I understand that this is not the main point of this issue, but I agree that "2 weeks to clean up" could be adjustable – for me, for example, I would like to clean as soon I removed the branch on github.com. This issue is related: #9747 |
I did not know of this feature either. However this does not address the issue of local branches that were never pushed to the remote. I would be happy if it was possible to delete a branch without checking it out first (ironically, git CLI requires this anyway), as the checkout is what is most time-consuming on big repos. |
Describe the feature or problem you’d like to solve
I want a way to select multiple local branches and delete all of them. Right now if I want to use GitHub desktop to clean up local branches, I have to change to a branch, wait 10 seconds, delete the branch, wait while changing to master, repeat.
Proposed solution
I would love to be able to select 20 branches and delete all in one go.
Additional context
Add any other context like screenshots or mockups are helpful, if applicable.
The text was updated successfully, but these errors were encountered: