I have a very basic github setup with a readme, a directory, and another directory inside it with an html file. On github I can only view the readme and the first folder but
In my case the problem was the subfolder that I was tying to push was a git folder itself
So I did the following
rm -rf .git
git rm --cached
git add /
git commit -m "Commit message"
git push -f origin