Can I have a nested git repo inside a git-ignored folder?

git, git-submodules, github

Solution

I think it should work. For main repo, `_site` folder does not exists. So what you have inside it doesn't matter. When you `cd` into `_site` you will be on that independent repo.

Problem

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.

Original source