how to delete an uncommited branch code example
Example 1: delete local branch git
git branch -d <branch_name>
Example 2: how to delete branch locally
$ git branch -d <local-branch>
git branch -d <branch_name>
$ git branch -d <local-branch>