rebase: use reflog to find common base with upstream