Init repo code