Skip to content

Instantly share code, notes, and snippets.

View BernhardBaumrock's full-sized avatar
🎯
Focusing

Bernhard Baumrock BernhardBaumrock

🎯
Focusing
View GitHub Profile

To remove a submodule you need to:

  • Delete the relevant section from the .gitmodules file.
  • Stage the .gitmodules changes git add .gitmodules
  • Delete the relevant section from .git/config.
  • Run git rm --cached path_to_submodule (no trailing slash).
  • Run rm -rf .git/modules/path_to_submodule (no trailing slash).
  • Commit git commit -m "Removed submodule "
  • Delete the now untracked submodule files rm -rf path_to_submodule
# list of commands that I used for upgrading phpBB3.2 to phpBB3.3
# I did not have any extensions or other languages installed so I skipped these steps!
# https://www.phpbb.com/support/docs/en/3.3/ug/upgradeguide/upgrade32/
# backup your files
cd /path/to/your/forum
# go to parent folder
cd ..