Remove Git Submodule

2019 - 07 - 23


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"
Previous PostgreSQL
Next Creating a Hugo theme from scratch, part 1