rgit remove branch code example
Example 1: delete branch git
// delete branch locally
git branch -D localBranchName
// delete branch remotely
git push
Example 2: delete local and remote branch github
$ git push <remote_name> :<branch_name>
// delete branch locally
git branch -D localBranchName
// delete branch remotely
git push
$ git push <remote_name> :<branch_name>