Split repositories in two separate local repo ---------------------------------------------- git clone -n --depth=1 --filter=tree:0 https://crossserv.bologna.enea.it/gitlab/gianluca/cruise.git cd cruise git sparse-checkout set --no-cone lec git checkout git clone -n --depth=1 --filter=tree:0 https://crossserv.bologna.enea.it/gitlab/gianluca/cruise.git cd cruise git sparse-checkout set --no-cone lecservice git checkout ---------- git init # git remote add origin https://crossserv.bologna.enea.it/gitlab/gianluca/cruise.git git remote add origin git@crossserv.bologna.enea.it:gianluca/cruise.git git config core.sparseCheckout true echo "lec" >> .git/info/sparse-checkout