Hi, I’m trying to manage my entire WP site in git but the Roots theme directory isn’t being tracked. Steps so far:
- create and work on ‘draft’ wp site with roots theme in local dev env
- init bare git repo on server (Webfaction)
- clone the git repo from server to local dev env
- in finder, copy files from ‘draft’ wp site to the empty git repo
- git add and commit
All goes well, except Terminal tells me:
Changes not staged for commit:
# (use "git add <file>..." to update what will be committed)
# (use "git checkout -- <file>..." to discard changes in working directory)
# (commit or discard the untracked or modified content in submodules)
#
# modified: www/wp-content/themes/roots-oppfund2014 (modified content, untracked content)
and git add -A
doesn’t add the directory as expected
a little research suggests its a git submodule thing, but i don’t have experience with that feature of git.
any suggestions or answers are appreciated.