init commit with index