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

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

Open
devjiwonchoi opened this issue May 31, 2023 · 19 comments · May be fixed by #205031
Open

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

devjiwonchoi opened this issue May 31, 2023 · 19 comments · May be fixed by #205031
Assignees
Labels
feature-request Request for new features or functionality git GIT issues
Milestone

Comments

@devjiwonchoi
Copy link

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
Copy link
Author

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

@lszomoru
Copy link
Member

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

@lszomoru lszomoru added the git GIT issues label May 31, 2023
@devjiwonchoi
Copy link
Author

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

@lszomoru lszomoru added the feature-request Request for new features or functionality label Dec 5, 2023
@vscodenpa vscodenpa added this to the Backlog Candidates milestone Dec 5, 2023
@vscodenpa
Copy link

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
Copy link

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
Copy link

🙁 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!

@vscodenpa vscodenpa closed this as not planned Won't fix, can't repro, duplicate, stale Feb 5, 2024
@bdrazen
Copy link

bdrazen commented Feb 12, 2024

What came of this? PR closed?

@devjiwonchoi devjiwonchoi linked a pull request Feb 12, 2024 that will close this issue
@devjiwonchoi
Copy link
Author

devjiwonchoi commented Feb 12, 2024

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

@gvsakhil
Copy link

gvsakhil commented Apr 24, 2024

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

@prhasn
Copy link

prhasn commented Apr 29, 2024

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

@bdrazen
Copy link

bdrazen commented Apr 29, 2024

Workaround with GitLens.

@akzov
Copy link

akzov commented Jul 18, 2024

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
Copy link

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
Copy link

jimmyn commented Sep 27, 2024

This is very much needed feature!

@lszomoru lszomoru reopened this Sep 30, 2024
@lszomoru lszomoru modified the milestones: Backlog Candidates, Backlog Sep 30, 2024
@erolkunman
Copy link

LETS DO THIS!

@jimmyn
Copy link

jimmyn commented Oct 16, 2024

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

@sashinka-inx
Copy link

Is this still open? would be nice to have this feature :/

@exetico
Copy link

exetico commented Oct 28, 2024

Another upvote here (and the golden 👍 pressed). Thanks for the tip about npx git-removed-branches --prune, @jimmyn (I'll use npm install -g git-removed-branches > git removed-branches)

@lszomoru lszomoru changed the title Remove all local branches which origin is deleted (Git Fetch Prune) Git - Remove all local branches which origin is deleted (Git Fetch Prune) Dec 10, 2024
@oscarnorberg
Copy link

I'm looking for this as well, upvote! ➕

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request Request for new features or functionality git GIT issues
Projects
None yet