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