This is similar to this question on Stack Overflow, but I want to keep the indexing of the original repo and stop indexing of the GitHub pages sites that are generated from the forks of the original repo. We use forks to stage changes to the main website.
Here is the question on Stack Overflow:
I have a github page from my repository username.github.io
However I do not want Google to crawl my website and absolutely do not want it to show up on search results.
Will just using robots.txt in github pages work? I know there are tutorials for stop indexing Github repository but what about the actual Github page?
noindex
meta tag to your original repo/master branch, but apply it to the forks so they won't be indexed (at least by Google). Perhaps you can have the meta tag on the main/master branch initially so that it's in the forks, but later remove it from the main/master branch. I don't do this myself, so can't be sure about the specifics though.noindex
meta tag. Sorry I can't help with the logistics - good luck!