{"meta":{"title":"Using submodules with GitHub Pages","intro":"You can use submodules with GitHub Pages to include other projects in your site's code.","product":"GitHub Pages","breadcrumbs":[{"href":"/en/pages","title":"GitHub Pages"},{"href":"/en/pages/getting-started-with-github-pages","title":"Get started"},{"href":"/en/pages/getting-started-with-github-pages/using-submodules-with-github-pages","title":"Use submodules with Pages"}],"documentType":"article"},"body":"# Using submodules with GitHub Pages\n\nYou can use submodules with GitHub Pages to include other projects in your site's code.\n\nIf the repository for your GitHub Pages site contains submodules, their contents will automatically be pulled in when your site is built.\n\nYou can only use submodules that point to public repositories, because the GitHub Pages server cannot access private repositories.\n\nUse the `https://` read-only URL for your submodules, including nested submodules. You can make this change in your `.gitmodules` file.\n\n## Further reading\n\n* [Git Tools - Submodules](https://git-scm.com/book/en/v2/Git-Tools-Submodules) from the *Pro Git* book\n* [Troubleshooting Jekyll build errors for GitHub Pages sites](/en/pages/setting-up-a-github-pages-site-with-jekyll/troubleshooting-jekyll-build-errors-for-github-pages-sites)"}