git remove branch upstream code example
Example 1: git remove upstream branch
$ git branch --unset-upstream
Example 2: git delete branch upstream
git push -d <remote_name> <branch_name>
$ git branch --unset-upstream
git push -d <remote_name> <branch_name>