Jump to content

Setting up a sub directory of the repo


Recommended Posts

is PrestaShop set up so it can be used as a git submodule. So that I can move the index.php, config.inc.php and the modules folder up a level then keep a clean repo of Prestashop so any changes I make are separate from Prestashop repo that I merge.

 

Here is an example of what I am talking about.

 

https://github.com/markjaquith/WordPress-Skeleton

 

the wp @ 6dde3d9 is a sub repo so that any changes made to the main repo dont affect the submodule.

 

example file directory

 

root

index.php

config.inc.php

module folder -> Not the same in the submodule repo

override folder -> Not the same in the submodule repo

ps @ fork location -> the main submodule git repo

Link to comment
Share on other sites

I am guessing nobody understands what I am asking.

 

I am going to create a fork of prestashop and leave it in its own repo then I am going to create a repo of my shop

the only files I am going to change are in my shop repo and just want to be able to have prestashop check my folders before its own.

 

Any ideas on how to do this?

Link to comment
Share on other sites

×
×
  • Create New...