delete local branch
git branch -d <branch> #delete the branch <branch>; if the branch have a commit not push to remote, this command will fail with a warning.
git branch -D <branch> #delete branch termlessly
Delete one branch in remote repo
$ git push origin --delete <branch>
or
$ git push origin :<branch>