how to delete a branch only locally code example Example: how to delete branch locally $ git branch -d <local-branch>