HI All,
Feel like this subject has been touched on around the forum but I’m not quite getting what I’m after. My git fu is not that strong.
I’m trying to set up a new WordPress boilerplate/skelton repository on github that includes Roots as the default theme as well as a few standard plugins. When I start a new project, I’d like to:
- Get the latest version of WordPress, keep it as a submodule. (similar directory structure to wp-skeleton)
- Get the latest version of Roots, not as a submodule.
- Get the latest version of some plugins (submodules)
- Turn roots on as the active theme and decline all setup options (all good stuff but my starter repo will implement them manually) - without going into the admin
- Detatch it all from my starter repository
- Init a new repository, setup the submodules, push it to a new repo on github
- Develop/Win
To ‘detach’ it from my starter repo (vs forking) should I clone my starter repo, remove the .git folder manually and run git init? Is there a better way?
I’m also thinking that my starter repo will point to roots as a submodule and then I’ll need to edit .gitmodules to remove it, as well as trashing any .git folders within the roots theme. Is there a better way?
Your thoughts/examples/links on ways to go about any parts of this way-too-long post is greatly appreciated.
Cheers.