branch

Delete git branch from local and remote

Github provides different options to delete unwanted branches on your git terminal or from remote github repository.

Delete a branch from your local git terminal.

Use a simple --delete option to delete a branch from your local git.

git branch --delete <branch_name>

This will not delete a branch if you have a commit or any work in progress. To delete it forcefully, use -D with the branch name.