git-up / GitUp

The Git interface you've been missing all your life has finally arrived.
http://gitup.co
GNU General Public License v3.0
11.44k stars 1.23k forks source link

Ability to delete a currently selected local HEAD branch #966

Open richardtop opened 5 months ago

richardtop commented 5 months ago

Currently it's impossible to delete a branch if it's selected. I propose to provide such a possibility. When deletion of the selected branch is requested, the software should just do it and set HEAD to the tip of the default branch if it exists or not be on any branch at all.

This will simplify the procedure where I'd like to delete the branch I'm currently on (e.g. I've merged it in the remote and now I'd like to delete it's local copy)