git unlink branch from remote code example Example: git remove upstream branch $ git branch --unset-upstream