git unset a remote upstream branch to reset it code example Example: git remove upstream branch $ git branch --unset-upstream