delete git branches local code example
Example: delete git branch
We can delete a branch by calling the branch command and passing in the -d option, followed by the branch name.
$ git branch -d <branchname>
We can delete a branch by calling the branch command and passing in the -d option, followed by the branch name.
$ git branch -d <branchname>