apache / apache/netbeans

Add menu option to prune remote git branches

Open
#8,866 0 comments 1 reaction 0 assignees View on GitHub
git kind:feature needs:triage
Dominant language
Java
Stars
3.1k
Forks
935
Avg merge
2d 3h
Merged PRs (30d)
17

Description

### Description

When working in projects, branches pile up, and so do remote branches.
Every now and then I have to carefully select the remote branches no longer on the server to remove the same origins in my local repo. Or I use one of the commands listed here: https://stackoverflow.com/questions/3184555/cleaning-up-old-remote-git-branches#3184742

- git branch -r -d origin/devel
- git remote prune origin
- git fetch origin --prune

### Use case/motivation

This allows to easier manage the git branches while the project proceeds.

### Related issues

_No response_

### Are you willing to submit a pull request?

No

Contributor guide

Open the contributing guide

Research direction

No source file, test, or entry point is named. Start by locating NetBeans' Git branch-management UI and review how remote branches are currently handled. Use the listed git branch -r -d, git remote prune, and git fetch --prune commands as the requested behavior, then verify the new menu option performs the selected cleanup.

Written by the indexing model from the issue text.

Assessment

Tech stack
git, java
Domain
developer-experience, tooling
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.