I have a git repo which have following folders:
_includes/
_layouts/
_plugins/
_posts/
_site/
_site folder is added in the .gitignore file.
Now can I have a git repo inside _site folder with different remote repo for push and pull? Will there be any conflict?
I have studied git submodules but I think it would be a overkill in my case, if the above stated method can work.
I think it should work. For main repo,
_sitefolder does not exists. So what you have inside it doesn’t matter. When youcdinto_siteyou will be on that independent repo.