From The Shadow
To initialize your local repository using the NinjaOS trees, use a command like this:
repo init -u https://github.com/NinjaOS/manifest.git -b oreo
repo sync -c -jx --force-sync --no-clone-bundle --no-tags
. build/envsetup.sh
lunch ninja_device_codename-userdebug
mka shadow -jx