GHP is a free web server that lets you host GitHub pages locally for testing. The service takes the root path of the folder containing the files you want to host, then runs the server on the specified port, allowing you to view the pages. But before we start, know that the developers are working to make the service compatible with Jekyll and markdown-based pages in the near future.

How to Host GitHub Pages Locally?

First, you need to download the GHP binary. Then open a CMD window. In the command prompt, drag and drop the "ghp.exe" file into it.

How to Host GitHub Pages Locally

At this point, you need to start the server with a command. We recommend creating a new folder inside the "ghp-windows-amd64" folder and copying your website files there so they can be viewed locally:

ghp -root "name of the folder"

By default, the port is 8080 and the URL is http://localhost:8080/

As you can see, the service works well and shows your web page quickly and completely. But the important point is the ability to view all errors of web pages in the command prompt window. The utility will list all logs.

How to Host GitHub Pages Locally
Very easy to use

With GHP, you can host GitHub pages locally to test them, all with a single command. GHP is a free open-source program available for Windows and Linux.

Official site: