To initialize your local repository, use this command:
repo init -u https://github.com/MagmaProject/manifest.git -b ten
Then to sync up:
repo sync -f --force-sync --no-tags --no-clone-bundle -j$(nproc --all)
source build/envsetup.sh
lunch magma_codename-buildtype
mka magma