resolve #236, #237: git hack/extract - branch exists on remote

@kevgo