GitHub Pages file name clash

Let’s say your user or organization name on GitHub is “easy-peasy”. You want to create a blog or something, so you create a repository named “easy-peasy/”, as instructed in the GitHub Pages documentation. Now you want to create a new repository, “easy-peasy/lemon-squeezy” that you also want hosted on GitHub Pages, so you create a gh-pages branch with an index.html in the root. What would happen if in “easy-peasy/” you created a lemon-squeezy/index.html file, as they would have the same URL?

Epic drumroll would point to your “easy-peasy/lemon-squeezy” repository.

Matija Marohnić

Matija Marohnić

I’m a frontend developer currently using React. I realize that modern frontend is an overwhelming and scary place, but we’re in this together!