re-apply commits from detached tree