Apply patch after checking out branch.