You need to commit the hugo generated HTML files for that to work. It doesn’t auto-run hugo behind the scenes (how would it know which static site generator, which version, etc. to run?).
Look into publishing GitHub Pages using Travis CI. Or better yet, if you don’t really care about the .github.io domain, look into Netlify.
If I understand correctly, the hugo generated html files will be in docs directory which is a publishDir directory configured in config.toml file, and the index.html is in the project root directory and I commited all of them to git.
Here is the link i committed to github.
So will the git not be able to pull the html and display. Do i need to use netlify or Travis CI for a theme to work ?
As you have not read those docs yet, I’d suggest that you navigate to netlify.com and read how to set up Hugo site publishing using that instead. The Netlify customer service is great too (Might sound like it but I am not at all affiliated with Netlify :P).
After you have run the command “hugo” in the CMD and you’re able to see it on localhost:1313 to then use it as a github pages you need to use the generated files, which is simply your “public” folder in the project.