delete a branch in local git code example
Example 1: git how to delete origin branch
$ git push origin --delete feature/login
Example 2: git delete branch
git branch -d feature/login
git push origin --delete feature/login
git branch -d feature/login && git push origin --delete feature/login
Example 3: delete local branch git
git branch -d <branch_name>
Example 4: github delete branch remote
$ git push -d <remote_name> <branch_name>
$ git branch -d <branch_name>
Example 5: Delete a Git Branch In Local And Remotely
git push <remote_name> --delete <branch_name>