In addition, I’ve created a separate repository for each one of these feature modules. This allows for the code to be easily added to other themes and also simplifies code updates/improvements as the code for specific features is consistent across all the themes that use that specific module.Įach theme that we produce is kept in its own Git repository. I develop the code for these enhancements in modules that are completely contained in their own folder. Basically, I develop feature enhancements to the themes. My profession is working with WordPress themes. In order to illustrate the value of submodules, it will probably be helpful for me to explain how I am using them. It essentially allows you to attach an external repository inside another repository at a specific path. I’ll cover two of the more difficult things to figure out: removing and updating submodules from your repository. I say “figuring out” because not everything about working with submodules is well documented. While the concept of submodules is simple, figuring out how to actually work with them can be a chore. Submodules specifically have managed to be a thorn in my side on many occasions. I can honestly say that while there are many things that I like about Git, there are just as many things that I personally find to be a pain in the butt. I’ve spent a little more than a month working with Git now.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |