rm index and log
rebuild index and init repo