July 23, 2019

Remove Git Submodule

Had problems deploying a Hugo site to Netlify because of problems with the theme submodule. Found it easier to simply remove it.

THEME_PATH = "theme/theme_name"
git rm --cached $THEME_PATH
git rm .gitmodules
rm -rf $THEME_PATH
git add $THEME_PATH
git commit -m "removed theme submodule"

© Sen Heng 2019