Skip to content
/ site Public

Building³ Discipline

License

Unlicense, Unknown licenses found

Licenses found

Unlicense
LICENSE
Unknown
license.txt
Notifications You must be signed in to change notification settings

b3dfit/site

Folders and files

NameName
Last commit message
Last commit date

Latest commit

5a8d2bf · Oct 20, 2024
Jul 17, 2024
Oct 20, 2024
Oct 20, 2024
Oct 20, 2024
Oct 20, 2024
Aug 7, 2024
Jul 26, 2024
Jul 10, 2024
Jul 8, 2024
Jul 24, 2024
Jul 8, 2024
Jul 8, 2024
Jul 8, 2024
Jul 8, 2024
Jul 17, 2024
Jul 8, 2024
Jul 8, 2024
Jul 8, 2024
Jul 17, 2024
Jul 31, 2024
Jul 8, 2024
Jul 8, 2024
Jul 17, 2024
Jul 17, 2024
Jul 8, 2024
Jul 17, 2024
Jul 8, 2024
Jul 8, 2024
Jul 8, 2024

Repository files navigation

Cloning the Project

Clone Project with Submodules

git clone --recurse-submodules [address_project_repository.git]

If the repository was already cloned without the --recurse-submodules option, the submodules can be initialized and updated with:

git submodule update --init --recursive

Submodule Maintenance

Adding Submodules

cd /path_to_wordpress

git submodule add [address_plugin_repository.git] wp-content/plugins/[folder_plugin_name]

git submodule update --init --recursive

git add .gitmodules wp-content/plugins/[folder_plugin_name]

git commit -m "Added [folder_plugin_name] as submodule"

Updating Submodules

cd wp-content/plugins/[folder_plugin_name]

git pull origin main

cd ../../../
git add wp-content/plugins/[folder_plugin_name]
git commit -m "Updated [folder_plugin_name] submodule"

Removing a Submodule

git config -f .gitmodules --remove-section submodule.wp-content/plugins/[folder_plugin_name]

git config -f .git/config --remove-section submodule.wp-content/plugins/[folder_plugin_name]

rm -rf .git/modules/wp-content/plugins/[folder_plugin_name]
rm -rf wp-content/plugins/[folder_plugin_name]

git add .gitmodules
git rm -r wp-content/plugins/[folder_plugin_name]
git commit -m "Removed [folder_plugin_name] submodule"