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