Created
November 13, 2012 10:56
-
-
Save richardtape/4065197 to your computer and use it in GitHub Desktop.
Workflow
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I have a standalone git repo (which is on github) which contains my 'framework'. That framework is a | |
load of php/css/js/less files, in several subdirectories. I use that framework in all of my projects. | |
I have another standalone git repo which contains all of my projects. | |
At the moment, if I update the framework, I then have to copy and paste it into all of my projects, | |
overwriting the existing stuff in each project folder. | |
I know! The humanity. Think of the children. But we live in the 21st Century etc. | |
I'm pretty sure I'm "doing it wrong". (or, _doing_it_wrong() for those WP folk reading this). I suspect | |
there's something with git submodules I can do. | |
Can anyone suggest anything I can read or look at to let me get my little head around this? If I sort | |
this out, I'll happily write a blog post about it to help other folk out. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If you don't modify the framework files to create the "child theme", what about adding Git submodule outside of root then a hook (which is invoked when you update the submodule) which moves/copies the now updated files to their final location?