how to remove a branch locally code example
Example 1: deletar branch
git branch -d nome-da-branch
git push origin --delete nome-da-branch
Example 2: git branch delete local and remote
// delete branch locally
git branch -d localBranchName
// delete branch remotely
git push origin --delete remoteBranchName
Example 3: how to delete a branch git
// delete branch locally
git branch -d localBranchName
// delete branch remotely
git push origin --delete remoteBranchName
Example 4: how to delete branch locally
$ git branch -d <local-branch>
Example 5: remove branch local git
$ git branch -d branch_name
$ git branch -D branch_name
Example 6: remove branch local git
$ git push -d <remote_name> <branch_name>
$ git branch -d <branch_name>