kill git branch code example
Example 1: Delete a Git Branch In Local And Remotely
git push <remote_name> --delete <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>