I am using one Github repository to host a portfolio website on the root of my domain. Now I want a separate GitHub repository to host the blog section at the subdirectory of my domain "www.example.com/blog". How do I approach this? I am using Publii as a CMS for my blog section. My DNS settings are managed by Cloudflare.

1 Answer 1


There is a pretty good article on this @ Github. Basically you can set new origin in the sub directory "blog".

And you have some other options like submodules and subtrees. See the answer @ Stackoverflow.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.