repo init -u git://github.com/LineageOS/android.git -b cm-14.1
git clone https://github.com/nubia-dev-msm8226/local_manifest -b cm-14.1 .repo/local_manifests
Then to sync up:
repo sync -j12
To build:
. build/envsetup.sh
brunch lineage_NX404H-userdebug