Background
While making changes to a theme for a static site generator, I changed files
under a Git submodule included in the repo for my blog. (e.g.
themes/beautifulhugo
) That’s ideal for local testing, but not for version
control. As a result, I cloned the repo for the theme to a directory separate
from the one for my bloge (say, ~/beautifulhugo
), and commit the changes
there, then performed a Git submodule update so as to make the workflow clean.