Skip to main content

Cloning

Clone the repository

To clone the repository with the submodules:

git clone --recurse-submodules https://gitlab.com/metahkg/metahkg.git
# you must clone the submodules

cd metahkg

Master

git checkout master

git submodule foreach git checkout master

git submodule foreach git pull
# update the submodules

Dev

git checkout dev

git submodule foreach git checkout dev

git submodule foreach git pull
# update the submodules

Pull submodules after clone

If you didn't use the --recurse-submodules flag when cloning, or you need to pull a new submodule, you can do this:

git submodule update --init --recursive
# pull with submodules

git submodule foreach git checkout dev
# check out a branch (dev or master)

git submodule foreach git pull
# update the submodules