how to remove branch name in git locally code example Example: how to delete branch locally $ git branch -d <local-branch>