Mod of submodules of mods used on Blocky Survival
Note: It is preferable to not make updates directly on the Blocky Survival server, and instead only pull in updates made elsewhere. Emergencies happen though, and cleaning things up isn't too hard.
git clone https://github.com/BlockySurvival/bls_mods.git
cd bls_mods
git submodule update --init --recursive
You may then wish to move the bls_mods folder to ~/.minetest/mods
or ~/.minetest/worlds/NAME/worldmods
for testing. Example minetest.conf
and world.mt
files have been provided, though these may be out of date. You should copy these to the appropriate locations.
git pull
git submodule sync --recursive
git submodule update --recursive --init
git remote add github [email protected]:BlockySurvival/bls_mods.git
git submodule update --recursive --remote SUBREPO_NAME
git add SUBREPO_NAME .gitmodules
git commit -m 'updated SUBREPO'
git push github master
git submodule update --recursive --remote
git add .
git commit -m 'updated all'
git push github master
git submodule add http://path/to/git/repo
git commit -m 'added new repo'
git push github master
This is only for making changes to a repo or fork that you have write permissions to.
cd subrepo
- e.g.
git remote add github [email protected]:BlockySurvival/....
- make changes
git add changed_file
git commit -m 'changed something'
git push github HEAD:master
cd ..
git add subrepo
git commit -m 'updated subrepo'
git push github master
vi .gitmodules
- find and replace the appropriate URL for the submodule
git submodule sync --recursive
git submodule update --recursive --remote MODULE_NAME
git add .gitmodules MODULE_NAME
git commit -m 'pointed module_name at fork ...'
git push github master
git submodule set-branch -b branch_name module_name
git add .gitmodules module_name
git commit -m 'set module_name to track branch_name'
git push github master