Manage clone and init in a bare repository