To initialize your local repository use a command like this:
repo init -u https://github.com/Nexus-ROM/android_manifest -b lineage-23.2 --git-lfs
To save some space and bandwidth use this command:
repo init -u https://github.com/Nexus-ROM/android_manifest -b lineage-23.2 --git-lfs --depth 1
Then to sync up:
repo sync -c -j$(nproc --all) --force-sync --no-clone-bundle --no-tags --optimized-fetch --prune
. build/envsetup.sh
brunch devicecodename
Please see the LineageOS Wiki for building instructions, by device.