To delete a branch in Git, use the following command:

git branch -d

For example, to delete the branch named “my_branch”, you would run the following command:

git branch -d my_branch

Leave a Reply

Your email address will not be published. Required fields are marked *