git clone --recurse-submodules [email protected]:EYBlockchain/nightfall.git
git pull --recurse-submodules
If you didn't initially clone with the --recurse-submodules
flag, you might need to init
the git submodules first:
git pull
git submodule update --init --recursive
This will pull the submodules' code into your repo for the first time (as subfolders). Thereafter the git pull --recurse-submodules
command will pull changes.
git push --recurse-submodules=check
checks for any changes you might have made in the submodule, and stops you pushing to Nightfall without first pushing to the submodule's remote repository.
cd merkle-tree
git commit -am "commit message"
git push origin master
Now you can safely push to Nightfall:
cd ..
git push --recurse-submodules=check
(always get in the habit of including the 'check' command)
git checkout --recurse-submodules master