microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
163.58k stars 29.03k forks source link

Remove all local branches which origin is deleted (Git Fetch Prune) #183906

Open devjiwonchoi opened 1 year ago

devjiwonchoi commented 1 year ago

After git fetch --prune or using VS Code Git: Fetch (Prune), local branches remain in the VS Code project.

In order to delete those branches, the user has to delete them one by one or use certain command lines.

Suggesting the feature to remove local branches where origin is deleted which could be validated by git fetch --prune.

devjiwonchoi commented 1 year ago

@lszomoru I've worked on it and going to open a PR later today. Could you review it sometime?

lszomoru commented 1 year ago

@devjiwonchoi, please feel free to submit a pull request and we will take a look. Thanks!

devjiwonchoi commented 1 year ago

@lszomoru Thank you. I've opened a PR and I'm sure my codes need some improvement.

vscodenpa commented 10 months ago

This feature request is now a candidate for our backlog. The community has 60 days to upvote the issue. If it receives 20 upvotes we will move it to our backlog. If not, we will close it. To learn more about how we handle feature requests, please see our documentation.

Happy Coding!

vscodenpa commented 8 months ago

This feature request has not yet received the 20 community upvotes it takes to make to our backlog. 10 days to go. To learn more about how we handle feature requests, please see our documentation.

Happy Coding!

vscodenpa commented 8 months ago

:slightly_frowning_face: In the last 60 days, this feature request has received less than 20 community upvotes and we closed it. Still a big Thank You to you for taking the time to create this issue! To learn more about how we handle feature requests, please see our documentation.

Happy Coding!

bdrazen commented 8 months ago

What came of this? PR closed?

devjiwonchoi commented 8 months ago

Yeah, needed 2 more upvotes or 2 more community approvals on the PR, reopened PR #205031

gvsakhil commented 5 months ago

We need this feature, we cant delete branches locally one by one. upvote done

prhasn commented 5 months ago

This is a no brainier feature. How is this not approved yet? 😳

bdrazen commented 5 months ago

Workaround with GitLens.

akzov commented 3 months ago

Does a new issue need to be created for the bot to look at it again? I don't think there's any way to re-open the issue and it doesn't seem like @lszomoru will look at the PR.

XtremeOwnageDotCom commented 1 month ago

Eh, I'd guess integrating co-pilot is a bigger priority then a very, VERY simple quality of life feature....

I mean, afterall, this is a microsoft project. :-/

jimmyn commented 3 weeks ago

This is very much needed feature!

erolkunman commented 2 weeks ago

LETS DO THIS!

jimmyn commented 4 days ago

I am currently using npx git-removed-branches --prune as an alternative until this feature is implemented.