- Init the Lineage manifest:
repo init -u ssh://git@github.com/LineageOS/android.git -b cm-14.1
(or cm-13.0 if you prefer that) - Update your local manifest (.repo/local_manifests/roomservice.xml), if it exists - find and replace "CyanogenMod" with "LineageOS" globally.
- Move the git objects:
mv .repo/project-objects/CyanogenMod .repo/project-objects/LineageOS
curl https://gist.github.com/fourkbomb/0d94e286dc6f173eb9053c0d75e84783/raw/cc1bb94337eab5e30efa689fe1d050db25a1124a/fixlinks.sh > ~/fixlinks.sh
chmod +x ~/fixlinks.sh
cd .repo/projects
find . -name '*.git' -exec ~/fixlinks.sh {} \;
- And finally, fix the actual tree: