It's a simple way to clone necessaries repositories for Mi 8 (Dipper) Just clone this inside device tree and will clone everything you need to build a custom ROM. Some things you need clone by your side.
Clone first device Xiaomi dipper Then clone the vendor setup inside device tree (device/xiaomi/dipper)