Prepare for local branching