delete local git branch and remote code example
Example 1: delete local branch git
git branch -d <branch_name>
Example 2: remove branch not published yet
First checkout another branch
git checkout <other branch>
Now delete branch
git branch -D <deleting brach>