How to delete a git branch Locally and Remotely

Git

I have seen lots of people struggling to delete a git branch from the local and the remote repository. Here is a quick guide to delete your branch in such a way.

Quick Guide

git push -d <remote_name> <branch_name>
git branch -d <branch_name>

NOTE:
In most cases the remote name is origin. In such a case you'll have to use…