How do I find the URL for an HTML file that's not on the master branch?

I have a couple of branches on my GitHub Page repo. When I switch to one of these branches, I’d like to open the (non-local) version of that page, but I can’t find the URL for it.

When I go to the page for that file on and click the “copy path” button, that URL gives me to a 404.

Is there no way to do this?

I’m not exactly sure what you’re asking. It sounds like you’re saying that you publish a repository via GitHub Pages, I suspect using the master branch and that you want to see a branch other than master via your GitHub Pages site.

To my knowledge, GitHub Pages only publishes one branch, not all of them. So if you want to see things via GitHub Pages without running Jekyll locally, you’ll have to merge the changes into your master branch and publish them.

Let me know if I’m not understanding things correctly.

1 Like