index creation with head checkout