How to delete Git branch both local and remote location

How to delete the Git branch both locally and remotely?

As Git is now almost the de-facto standard for the Source Control Management (SCM), understanding the Git operations as much as possible is going to be an essential skill to become an expert developer.

While there are plenty of Git clients available with the nice user interface built-in, the simple Git operations through the CLI definitely have own benefits. In this…