Mod of submodules of mods used on VE-Creative
Note: It is preferable to not make updates directly on the VE-Creative 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/VE-Creative-Server/worldmods.gitcd worldmodsgit submodule update --init --recursive
You may then wish to move the VE-C_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 pullgit submodule sync --recursivegit submodule update --recursive --init
git remote add github git@github.com:VE-Creative-Server/worldmods.git
git submodule update --recursive --remote SUBREPO_NAMEgit add SUBREPO_NAME .gitmodulesgit commit -m 'updated SUBREPO'git push github master
git submodule update --recursive --remotegit add .git commit -m 'updated all'git push github master
git submodule add http://path/to/git/repogit 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 git@github.com:VE-Creative-Server/.... - make changes
git add changed_filegit commit -m 'changed something'git push github HEAD:mastercd ..git add subrepogit commit -m 'updated subrepo'git push github master
vi .gitmodules- find and replace the appropriate URL for the submodule
git submodule sync --recursivegit submodule update --recursive --remote MODULE_NAMEgit add .gitmodules MODULE_NAMEgit commit -m 'pointed module_name at fork ...'git push github master
git submodule set-branch -b branch_name module_namegit add .gitmodules module_namegit commit -m 'set module_name to track branch_name'git push github master