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