git remove remote brach code example
Example 1: delete branch from remote
// delete branch locally
git branch -d localBranchName
//delete local branch that is unmerged
git branch -D localBranchName
// delete branch remotely
git push origin --delete remoteBranchName
Example 2: remove remote git
# The example will remove the github remote.
# Note that the command will not delete the repository,
# just the local reference.
git remote rm origin
Example 3: git delete remote branch
$ git push origin --delete feature/login