Skip to content
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

Open
doughyde opened this issue May 18, 2020 · 4 comments
Open

Ability to delete multiple/many local branches #9824

doughyde opened this issue May 18, 2020 · 4 comments

Comments

@doughyde
Copy link

doughyde commented May 18, 2020

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.

@steveward
Copy link
Member

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 steveward added the more-info-needed The submitter needs to provide more information about the issue label May 18, 2020
@doughyde
Copy link
Author

@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.

@hmaesta
Copy link

hmaesta commented May 20, 2020

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

@cschreib-ibex
Copy link

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.

@niik niik removed the more-info-needed The submitter needs to provide more information about the issue label Oct 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants