git remotre remove git branch --unset-upstream code example Example: git remove upstream branch $ git branch --unset-upstream