Delete Branch from Branches View
See original GitHub issueDescribe the feature or problem you’d like to solve
I would like to be able to delete branches from the branches selection menu, along with PRs.
Proposed solution
Add a little trash can icon next to the branch you want to delete. When you click it, it will come up with a notice saying what it will do. If the user clicks Confirm, the branch will be deleted. If the user clicks cancel, the branch will not be deleted. The Master
Branch cannot be deleted from it.
Additional context
Mock ups
Issue Analytics
- State:
- Created 3 years ago
- Reactions:2
- Comments:6 (1 by maintainers)
Top Results From Across the Web
Git Delete Branch – How to Remove a Local or Remote Branch
Instead of using the git branch command that you use for local branches, you can delete a remote branche with the git push...
Read more >How do I delete a Git branch locally and remotely?
So, to delete the remote branch AND locally-stored remote-tracking branch in one command, just use git push origin --delete <branch> . Then, you...
Read more >Git Delete Branch How-To, for Both Local and Remote
You'll often need to delete a branch not only locally but also remotely. To do that, you use the following command: git push...
Read more >How can I delete a remote branch in Git? - Tower Git Client
In case you are using the Tower Git client, you can simply right-click any branch item in the sidebar and choose the "Delete…"...
Read more >How to delete local branches in Git - GitKraken
To perform a Git delete local branch, run the Git branch command followed by the -d flag. Learn how to Git delete local...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@tierninho I totally agree with you there. Even if I like the feature which is something good to have, the deleting branch is not a frequent action. The way this feature is done in the application is better.
@TheCrafters001 Thanks for the suggestion. I can imagine that we do not want to make deleting a branch too exposed as it may get clicked accidentally too often, despite the warning message. There is similar logic behind omitting a
ctl/cmd-D
keyboard shortcut.As both your suggestion and the current way take two clicks, I am hesitant to move forward. Going to label this appropriately and see if we get any relevant feedback from other users before taking any further action.