Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why cant i delete a local Git branch in IntelliJ?

So Im new to Git, and to test i have created the local Branch "test". But for some reason, I can not delete it, just the master branch. I just dont have the option to do that, but there is not a single person on the internet that asked the same question, see here

like image 436
bheboo Avatar asked Oct 15 '25 13:10

bheboo


1 Answers

Try switching to another branch (e.g. master or main) via checkout. Then your branch will be deletable.

like image 121
Duncan Avatar answered Oct 17 '25 01:10

Duncan



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!