Git – How to delete a local branch

To delete a local git branch, first checkout a different branch, then just run the following git command:

You can’t delete a branch if you are currently working inside of it.

Leave a Reply

Your email address will not be published. Required fields are marked *