I set up a test by replicating the repository structure in the question. When I visited caffinatedmonkey.github.io/foo
I was taken to the user's foo page, https://github.com/caffinatedmonkey/caffinatedmonkey.github.io/tree/master/foo/index.html
.
User pages take precedence.