git remove connection to remote branch code example Example: git remove upstream branch $ git branch --unset-upstream