Working With The LabStreamingLayer Repository

See also

This repository doesn’t contain the apps, just links to their respective submodules (i.e. Apps/AppTemplate_cpp_qt is found at commit abc123def of

Git cookbook

Some operations have to be done differently than in a normal repository:

Initial cloning, checking out all submodules:

git clone --recurse-submodules

Adding a submodule:

git submodule add<username>/<reponame>.git Apps/AppXY

Don’t use URLs like ssh://<username>/<reponame> because they can’t be checked out anonymously. Change them in your local tree with git remote set-url origin ssh://... after checking them out.

If you’re using bash, you can cd to the subdirectory and set your local remote with git remote set-url origin${PWD##*/}

Check out a single submodule:

git submodule update --init <path>

Update a submodule

set the referenced commit to the newest: git submodule update --remote --rebase <path> (rebase local changes) or

git submodule update --remote --merge <path> (merge local changes)

Change the commit that’s referenced in this repository:

Commit and push changes in the App repository:

cd Apps/XY
git add .
git commit -m'Message'
git push

From the main repository, update the reference: git add Apps/XY

Commit and push as usual:

git add Apps/XY
git commit -m'Update references'
git push --recurse-submodules=on-demand